deploy_website.sh 287 B

1234567
  1. #!/bin/bash
  2. echo "Deleting at target"
  3. lftp -v -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 -v -p 21 -u $CU_USR,$CU_PASSWORD $CU_HOSTNAME -e "set ftp:ssl-allow no; mirror -R . $CU_DIR; bye"