Away:Module-sys: Difference between revisions
From The Commonwealth of Acropolis
More actions
Created page with "#!/usr/bin/env bash case $1 in reload) /root/reload.sh ;; esac" |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
#!/usr/bin/env bash | #!/usr/bin/env bash | ||
code=("$@") | |||
case $1 in | case $1 in | ||
reload) | reload) | ||
/root/reload.sh | /root/reload.sh | ||
;; | |||
backup) | |||
/root/mkbak.sh | |||
;; | |||
restor) | |||
[ "${2}" = "yesIKnowThisCouldNukeTheDataBasePleaseRestoreFromBackupAnyway" ] && { /root/restore.sh; } | |||
;; | ;; | ||
esac | esac | ||
Latest revision as of 02:21, 25 September 2026
#!/usr/bin/env bash
code=("$@")
case $1 in
reload)
/root/reload.sh
;;
backup)
/root/mkbak.sh
;;
restor)
[ "${2}" = "yesIKnowThisCouldNukeTheDataBasePleaseRestoreFromBackupAnyway" ] && { /root/restore.sh; }
;;
esac