add reboot flag
This commit is contained in:
parent
3e3785777e
commit
a8fc3c689b
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue