forked from ulovliglogning/ulovliglogning.dk
13 lines
362 B
Bash
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 |