upgrade.sh 506 B

1234567891011121314151617181920212223
  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. rsync -apv --delete /opt/LibreLight/git/LibreLightASP/ /opt/LibreLight/ASP/
  12. pwd
  13. ls -l
  14. cd /opt/LibreLight/git/
  15. rm -rf LibreLight
  16. pwd
  17. ls -l
  18. git clone https://github.com/micox4356/LibreLight.git
  19. rsync -apv --delete /opt/LibreLight/git/LibreLight/ /opt/LibreLight/Xdesk/
  20. pwd
  21. ls -l
  22. read -p -t 1