synchro_openminer.sh 463 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -e
  3. echo -e -n "Check NCFTP already installed : "
  4. if ! [ -x "$(command -v ncftp)" ]
  5. then
  6. echo -e "[\e[91mNO\e[0m]\n"
  7. sudo apt-get install ncftp -y
  8. else
  9. echo -e "[\e[92mOK\e[0m]\n"
  10. fi
  11. echo -e "Upload genethos"
  12. ncftpput -R -v -u "wareck" -p "zorn69" ftpperso.free.fr openrig/ /var/www/folivier/genethos/*
  13. sleep 5
  14. echo ""
  15. echo -e "Upload grinder"
  16. ncftpput -R -v -u "wareck" -p "zorn69" ftpperso.free.fr grinder/ /var/www/folivier/grinder/*
  17. sleep 5