ayguci 807 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/sh
  2. ayguci_path="/usr/milis/ayguci"
  3. auth_check(){
  4. if [[ `id -g` -ne 0 ]]; then
  5. echo "yetkili çalıştırınız!"
  6. exit 0
  7. fi
  8. }
  9. info(){
  10. echo "güncelleme : ayguci update"
  11. echo "konsol istemci : ayguci cli"
  12. echo "kabuk istemci : ayguci shell"
  13. #echo "grafiksel arayüz : ayguci gui"
  14. exit 1
  15. }
  16. update(){
  17. mps gun -B
  18. cd $ayguci_path
  19. ./setup.sh
  20. }
  21. if [ -d $ayguci_path/server ];then
  22. subcmd=$1
  23. [ -z $subcmd ] && exit 0
  24. if [ $subcmd = "cli" ];then
  25. shift
  26. $ayguci_path/client/ayguci-client $@
  27. elif [ $subcmd = "shell" ];then
  28. python3 $ayguci_path/client/ayguci-shell.py
  29. elif [ $subcmd = "update" ];then
  30. auth_check
  31. update
  32. else
  33. info
  34. fi
  35. exit 1
  36. else
  37. auth_check
  38. mpsc betikdepo.ayguci https://mls.akdeniz.edu.tr/git/milislinux/ayguci
  39. update
  40. info
  41. fi