Advertisement
aem5299

Untitled

Feb 8th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.19 KB | None | 0 0
  1. if [ `id -u` = "root" ]; then
  2.     echo "This script must not be run as root" 1>&2
  3.     exit 1
  4. fi
  5.  
  6. ROOT=$PWD
  7. clear
  8. echo -e "\033[31mWrite nummber of channel (max:4)\033[0m"
  9. read chs
  10. case $chs in
  11. 1*)
  12.     clear
  13.     echo -e "\033[34mStopping Auth\034"
  14.     cd $ROOT/core/auth && sh shutdown.sh
  15.     sleep 2
  16.     echo "Stopping Ch1"
  17.     cd $ROOT/core/ch1/game1 && sh shutdown.sh
  18.     sleep 1
  19.     cd $ROOT/core/ch1/game2 && sh shutdown.sh
  20.     sleep 1
  21.     cd $ROOT/core/ch1/first && sh shutdown.sh
  22.     sleep 2
  23.     echo -e "Stopping Game99"
  24.     cd $ROOT/core/game99 && sh shutdown.sh
  25.     sleep 2
  26.     echo -e "Stopping Database"
  27.     cd $ROOT/core/db && sh shutdown.sh
  28.     sleep 2
  29.     echo -e "\033[31m Server has been closed \033[0m"
  30. ;;
  31. 2*)
  32.     clear
  33.     echo -e "Stopping Auth"
  34.     cd $ROOT/core/auth && sh shutdown.sh
  35.     sleep 2
  36.     echo "Stopping Ch1"
  37.     cd $ROOT/core/ch1/game1 && sh shutdown.sh
  38.     sleep 1
  39.     cd $ROOT/core/ch1/game2 && sh shutdown.sh
  40.     sleep 1
  41.     cd $ROOT/core/ch1/first && sh shutdown.sh
  42.     sleep 2
  43.     echo "Stopping Ch2"
  44.     cd $ROOT/core/ch2/game1 && sh shutdown.sh
  45.     sleep 1
  46.     cd $ROOT/core/ch2/game2 && sh shutdown.sh
  47.     sleep 1
  48.     cd $ROOT/core/ch2/first && sh shutdown.sh
  49.     sleep 2
  50.     echo -e "Stopping Game99"
  51.     cd $ROOT/core/game99 && sh shutdown.sh
  52.     sleep 2
  53.     echo -e "Stopping Database"
  54.     cd $ROOT/core/db && sh shutdown.sh
  55.     sleep 2
  56.     echo -e "\033[31m Server has been closed \033[0m"
  57. ;;
  58. 3*)
  59.     clear
  60.     echo -e "Stopping Auth"
  61.     cd $ROOT/core/auth && sh shutdown.sh
  62.     sleep 2
  63.     echo "Ch1 kapatiliyor"
  64.     cd $ROOT/core/ch1/game1 && sh shutdown.sh
  65.     sleep 1
  66.     cd $ROOT/core/ch1/game2 && sh shutdown.sh
  67.     sleep 1
  68.     cd $ROOT/core/ch1/first && sh shutdown.sh
  69.     sleep 2
  70.     echo "Stopping Ch2"
  71.     cd $ROOT/core/ch2/game1 && sh shutdown.sh
  72.     sleep 1
  73.     cd $ROOT/core/ch2/game2 && sh shutdown.sh
  74.     sleep 1
  75.     cd $ROOT/core/ch2/first && sh shutdown.sh
  76.     sleep 2
  77.     echo "Stopping Ch3"
  78.     cd $ROOT/core/ch3/game1 && sh shutdown.sh
  79.     sleep 1
  80.     cd $ROOT/core/ch3/game2 && sh shutdown.sh
  81.     sleep 1
  82.     cd $ROOT/core/ch3/first && sh shutdown.sh
  83.     sleep 2
  84.     echo -e "Stopping Game99"
  85.     cd $ROOT/core/game99 && sh shutdown.sh
  86.     sleep 2
  87.     echo -e "Stopping Database"
  88.     cd $ROOT/core/db && sh shutdown.sh
  89.     sleep 2
  90.     echo -e "\033[31m Server has been closed \033[0m"
  91. ;;
  92. 4*)
  93.     clear
  94.     echo -e "Stopping Auth"
  95.     cd $ROOT/core/auth && sh shutdown.sh
  96.     sleep 2
  97.     echo "Ch1 kapatiliyor"
  98.     cd $ROOT/core/ch1/game1 && sh shutdown.sh
  99.     sleep 1
  100.     cd $ROOT/core/ch1/game2 && sh shutdown.sh
  101.     sleep 1
  102.     cd $ROOT/core/ch1/first && sh shutdown.sh
  103.     sleep 2
  104.     echo "Stopping Ch2"
  105.     cd $ROOT/core/ch2/game1 && sh shutdown.sh
  106.     sleep 1
  107.     cd $ROOT/core/ch2/game2 && sh shutdown.sh
  108.     sleep 1
  109.     cd $ROOT/core/ch2/first && sh shutdown.sh
  110.     sleep 2
  111.     echo "Stopping Ch3"
  112.     cd $ROOT/core/ch3/game1 && sh shutdown.sh
  113.     sleep 1
  114.     cd $ROOT/core/ch3/game2 && sh shutdown.sh
  115.     sleep 1
  116.     cd $ROOT/core/ch3/first && sh shutdown.sh
  117.     sleep 2
  118.     echo "Stopping Ch4"
  119.     cd $ROOT/core/ch4/game1 && sh shutdown.sh
  120.     sleep 1
  121.     cd $ROOT/core/ch4/game2 && sh shutdown.sh
  122.     sleep 1
  123.     cd $ROOT/core/ch4/first && sh shutdown.sh
  124.     sleep 2
  125.     echo -e "Stopping Game99"
  126.     cd $ROOT/core/game99 && sh shutdown.sh
  127.     sleep 2
  128.     echo -e "Stopping Database"
  129.     cd $ROOT/core/db && sh shutdown.sh
  130.     sleep 2
  131.     echo -e "\033[31m Server has been closed \033[0m"
  132. ;;
  133. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement