upgrade.sh 622 B

12345678910111213141516171819202122232425
  1. set -e
  2. echo "upgrade LibreLight from git master ?"
  3. echo " press enter to run"
  4. #read -p -t $Xa
  5. x=read
  6. cd /opt/LibreLight/git/
  7. pwd
  8. ls -l
  9. rm -rf LibreLightASP
  10. #git clone https://github.com/micox4356/LibreLightASP.git
  11. git clone https://gogs.librelight.de/librelight/ASP.git
  12. rsync -apv --delete /opt/LibreLight/git/LibreLightASP/ /opt/LibreLight/ASP/
  13. pwd
  14. ls -l
  15. cd /opt/LibreLight/git/
  16. rm -rf LibreLight
  17. pwd
  18. ls -l
  19. #git clone https://github.com/micox4356/LibreLight.git
  20. git clone https://gogs.librelight.de/librelight/Xdesk.git
  21. rsync -apv --delete /opt/LibreLight/git/LibreLight/ /opt/LibreLight/Xdesk/
  22. pwd
  23. ls -l
  24. read -p -t 1