upgrade.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. set -e
  2. #sh -c 'cd /opt/LibreLight/Xdesk/; git status'
  3. echo "upgrade LibreLight from git master ?"
  4. echo " press enter to run"
  5. read X
  6. #echo $X
  7. #read -p -t $Xa
  8. #x=read
  9. cd /opt/LibreLight/git/
  10. pwd
  11. ls -l
  12. rm -rf LibreLightASP
  13. #!/usr/bin/dash
  14. rm -rf ASP
  15. #git clone https://github.com/micox4356/LibreLightASP.git
  16. git clone https://gogs.librelight.de/librelight/ASP.git
  17. #rsync -apv --delete /opt/LibreLight/git/LibreLightASP/ /opt/LibreLight/ASP/
  18. rsync -apv --delete /opt/LibreLight/git/ASP/ /opt/LibreLight/ASP/
  19. pwd
  20. ls -l
  21. echo
  22. cd /opt/LibreLight/git/ASP
  23. git remote -v
  24. echo
  25. # -----------------------------------------------------
  26. cd /opt/LibreLight/git/
  27. rm -rf LibreLight
  28. rm -rf Xdesk
  29. pwd
  30. ls -l
  31. #git clone https://github.com/micox4356/LibreLight.git
  32. git clone https://gogs.librelight.de/librelight/Xdesk.git
  33. cd /opt/LibreLight/git/
  34. #rsync -apv --delete /opt/LibreLight/git/LibreLight/ /opt/LibreLight/Xdesk/
  35. rsync -apv --delete /opt/LibreLight/git/Xdesk/ /opt/LibreLight/Xdesk/
  36. pwd
  37. ls -l
  38. echo
  39. cd /opt/LibreLight/git/ASP
  40. git remote -v
  41. echo ""
  42. echo "ENDE"
  43. read X
  44. #read -p -t 1