Need Help with upcp & backup hooks
Hello,
I have the following scripts:
1: /usr/local/src/custom/updates/before.sh
2: /usr/local/src/custom/updates/after.sh
3: /usr/local/src/custom/backups/before.sh
4: /usr/local/src/custom/backups/after.sh
Each script, is a bash script, tested to work in standalone / shell execution mode (already chmoded to +x).
Can anyone help me and explain me how I can add these scripts to execute at
the proper time via cPanel Hooks system ???
1: should run, BEFORE cPanel updater runs (before upcp)
2: should run, AFTER cPanel updater completes (after upcp)
3: should run, BEFORE cPanel new backups runs (before backups)
4: should run, AFTER cPanel new backups completes (after backups)
Notice: I have seen that there is also a post-upcp action running regarding CloudLinux,
my script should execute AFTER this is also completed.
Actually, my scripts should explicitly execute before and after the cPanel daemons run.
Thanks on advance for your help !!!
-
I should mention that I don't know Perl and am not a developer, so I just wanted an easy method to get these bash files executed on the right time and not to actually integrate them with cPanel API, as I really don't have the skills to do that, I simply need some administrative, simple, bash commands, which are on those executable bash scripts, to be run before and after these daemons... Thanks again !!! 0
Please sign in to leave a comment.
Comments
1 comment