ulovliglogning.dk/_scripts/build-then-deploy.sh
2018-04-17 19:31:14 +02:00

13 lines
362 B
Bash

#!/bin/sh
set -e
#get config vars
source _scripts/config.sh
#Disable SSL check for lftp, this fails on our host :(
echo "set ssl:verify-certificate no" > ~/.lftprc
if [ -d "$jekyll_dir" ]; then
jekyll build
lftp -u ${remote_username},${remote_password} -e "mirror -R -p -P=10 --ignore-time -v ${jekyll_dir}/_site/ ${remote_dir};quit" ftp://${remote_host}
fi