diff --git a/helperbot b/helperbot index dc945e1..226d60f 100755 --- a/helperbot +++ b/helperbot @@ -113,6 +113,9 @@ function info_help { echo "${bold}-v${normal}, ${bold}--vacuum${normal}" echo " Vacuum the postgresql databases." echo + echo "${bold}-r${normal}, ${bold}--reboot${normal}" + echo " Restart the system. Used if needed during command chains." + echo echo "${bold}--psql${normal}" echo " Enter the postgresql shell." echo @@ -844,6 +847,11 @@ while [ -n "$1" ]; do detect_system fi system_vacuum;; + -r | --reboot) # reboot system + root_check + echo "${yellow}Rebooting system...${normal}" + sleep 1 + systemctl reboot;; --psql) # enter the psql shell enter_psql;; --docker-cleanup) # docker cleanup