deploy_website.sh 281 B

1234567
  1. #!/bin/bash
  2. echo "Deleting at target"
  3. lftp -p 21 -u $CU_USR,$CU_PASSWORD $CU_HOSTNAME -e "set ftp:ssl-allow no; cd $CU_DIR; glob -a rm -r *; bye"
  4. echo "Uploading"
  5. cd _site || exit
  6. lftp -p 21 -u $CU_USR,$CU_PASSWORD $CU_HOSTNAME -e "set ftp:ssl-allow no; mirror -R . $CU_DIR; bye"