wrcurrent.sh 567 B

123456789101112131415161718
  1. #!/bin/sh
  2. BASEPATH="/usr/local/www/apache24/data/wrsnaps/"
  3. mkdir ${BASEPATH}/exported
  4. cd ${BASEPATH}/tmp/
  5. rm -fr ../wr_current.tgz > /dev/null
  6. rm -fr ../RELEASE > /dev/null
  7. rm -fr master.zip
  8. /usr/local/bin/curl -k -s https://codeload.github.com/nightflyza/WolfRecorder/zip/main > main.zip
  9. /usr/local/bin/unzip main.zip -d ../exported
  10. cd ../exported/WolfRecorder-main/
  11. rm -fr nbproject
  12. tar cf - ./* | gzip > ../../wr_current.tgz
  13. cp -R ./RELEASE ${BASEPATH}/RELEASE
  14. cp -R ./dist/wrinstaller.sh ${BASEPATH}/wrinstaller_current.sh
  15. cd ${BASEPATH}
  16. rm -fr exported ./tmp/*