The Deployment Scripts feature is being phased out with the introduction of cloud-config for supported operating systems in its place.
Deployment scripts can no longer be created, edited or deployed. If you try, mPanel shows "Deployment scripts have been deprecated. Use the Enable Cloud-init User Data field when creating or reinstalling a server instead." If your account had deployment scripts when the feature was retired, you can still view and download them from the Deployment Scripts page in the classic mPanel until 31 October 2026, when the feature becomes unavailable: click Download next to each script you want to keep, or Delete to remove it. Accounts that never had a script no longer see the page at all. Choosing a deployment script when creating or reinstalling a server in the classic mPanel no longer runs it. To run setup commands on a new or reinstalled Linux server, tick Enable Cloud-init User Data on the create, reinstall or change-plan page and paste a #cloud-config file or a script starting with #!/bin/bash.
Please refer to our feature article on cloud-config for Linux servers for more information.
An option to 'Enable cloud-init User Data' will be presented on the server creation form when an operating system that supports cloud-config has been selected for installation.
Checking this option enables the use of cloud-config scripts, as well as plain shell scripts, and includes.
It does not support variables or provide a web interface in the same manner that the retired deployment scripts facilities did.
The following documentation provides detailed examples of #cloud-config usage.
https://cloudinit.readthedocs.io/en/latest/reference/examples.html
It is possible to enter basic shell script starting with '#!/bin/bash' or python code using '#!/bin/python3' for example. Consult the following documentation for further information.
https://cloudinit.readthedocs.io/en/latest/explanation/format.html
The use of #include is supported as well. This will allow you to enter the URL(or URLs, one per line) of a script or file hosted at an external repository such as Github. The #include feature supports URLs pointing to gzipped, mime-multipart, or plaintext content.
