Init Script Management is an option for a VPS server that allows you to add your scripts, that will be executed automatically after OS installation. This function could save time when deploying multiple servers. It allows you to prepare scripts once and they will be done together with the installation task, without additional manual work from the administrator.
You can add the scripts by following these steps:
- Connect to your Clients Area account: https://billing.hostens.com/clientarea/
- Choose a VPS server;
- On the left menu, press “Init Script Management” option;
- Press “Add new init script”
- Upload your script code in the text area and save it.
That’s it, your script is uploaded and will be executed on the next OS installation task.
Here are a few things to know:
- Scripts are executed with root/administrator rights, so you don’t need to add “sudo”.
- Scripts accept the following syntax: Bash/SH, Perl, Python.
- You can add multiple scripts.
- Our system doesn’t check the syntax, so if the script is incorrect it will simply won’t work.
A tutorial about OS installation is here: https://www.hostens.com/knowledgebase/install-reinstall-os/