Advertisement
Guest User

Untitled

a guest
Feb 21st, 2014
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.98 KB | None | 0 0
  1. #!/bin/sh
  2. # Installs the needed parts
  3. # (Executes child scripts)
  4.  
  5. if [ `id -u` = "0" ]; then
  6.     echo "This script must not be run as root" 1>&2
  7.     exit 1
  8. fi
  9.  
  10. ROOT=$PWD
  11.  
  12. chmod u=rwx,g=r,o=r $ROOT/share/bin/game
  13. chmod u=rwx,g=r,o=r $ROOT/share/bin/db
  14. chmod u=rwx,g=r,o=r $ROOT/share/bin/vrunner
  15.  
  16. find . -type d -exec chmod u=rwx,g=rx,o=rx {} \;
  17. find . -name "*.sh" -exec chmod u=rwx,g=r,o=r {} \;
  18.  
  19. # Install db
  20. cd $ROOT/db && sh install.sh
  21.  
  22. # Install auth
  23. cd $ROOT/auth && sh install.sh
  24.  
  25. # Install channel1
  26. cd $ROOT/channel1/first && sh install.sh
  27. cd $ROOT/channel1/game1 && sh install.sh
  28. cd $ROOT/channel1/game2 && sh install.sh
  29.  
  30. # Install channel2
  31. cd $ROOT/channel2/first && sh install.sh
  32. cd $ROOT/channel2/game1 && sh install.sh
  33. cd $ROOT/channel2/game2 && sh install.sh
  34.  
  35. # Install channel3
  36. cd $ROOT/channel3/first && sh install.sh
  37. cd $ROOT/channel3/game1 && sh install.sh
  38. cd $ROOT/channel3/game2 && sh install.sh
  39.  
  40. # Install game99
  41. cd $ROOT/game99 && sh install.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement