Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/webdir/bin/menu/02_local/ |
Upload File : |
#!/usr/bin/bash # PROGNAME=$(basename $0) PROGPATH=$(dirname $0) [[ -z $DEBUG ]] && DEBUG=0 . $PROGPATH/functions.sh || exit 1 logo=$(get_logo) TYPE="${1:-reboot}" sub_menu() { menu_logo="${TYPE^} server" MENU_SELECT= until [[ -n "$MENU_SELECT" ]]; do [[ $DEBUG -eq 0 ]] && clear echo -e "\t\t" $logo echo -e "\t\t" $menu_logo echo print_message "$(get_text "$CH025" "$TYPE")" "" "" answer n [[ $(echo "$answer" | grep -wci "y") -gt 0 ]] || exit case "$TYPE" in "reboot") shutdown -r now "$menu_logo" ;; "halt") shutdown -h now "$menu_logo" ;; esac print_message "$CH100" "" "" any_key done } sub_menu