To install and uninstall packages by installing dependent packages and restart libraries if necessary
1.bootstrap
before beginning the setup Check for package manager updates and install needrestart
- setup.sh
to install a package, pass the package name to ROLE_TO_INSTALL
, to uninstall an installed package, add the name to ROLE_TO_UNINSTALL
and to Run additional (dependent) scripts before starting the setup use "SCRIPT_PATH" inside the "setup.sh".
Php application content is included in “files” folder with index.php file
- metadata.txt
add key(owner, group, mode)=value pairs into the metadata file
- handler.sh
To check which daemons need to be restarted after library upgrades
Steps to execute:
-
Allow port 80 using UFW
-
copy bootstrap.sh setup.sh handler.sh metadata.txt to
rcmt
dir -
cd rcmt/
-
chmod +x setup.sh bootstrap.sh handler.sh
-
Invoke setup.sh file to apply the changes.
#./setup.sh | tee /root/rcmt/setup.log