add reboot flag

This commit is contained in:
Ruben 2025-10-14 11:56:05 -05:00
commit a8fc3c689b
Signed by: sneexy
GPG key ID: 8ECFA045E63BC583

View file

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