forked from ulovliglogning/ulovliglogning.dk
change lftp sync option
…would’ve been nice with some SSH access 😉
This commit is contained in:
parent
baecd6b2fa
commit
68018abd6c
|
@ -21,7 +21,7 @@ description: >- # this means to ignore newlines until "baseurl:"
|
||||||
baseurl: "" # the subpath of your site, e.g. /blog
|
baseurl: "" # the subpath of your site, e.g. /blog
|
||||||
url: "https://ulovliglogning.dk" # the base hostname & protocol for your site, e.g. http://example.com
|
url: "https://ulovliglogning.dk" # the base hostname & protocol for your site, e.g. http://example.com
|
||||||
donationCounter:
|
donationCounter:
|
||||||
donated: 186594
|
donated: 186595
|
||||||
goal: 250000
|
goal: 250000
|
||||||
|
|
||||||
# multilanguage support
|
# multilanguage support
|
||||||
|
|
|
@ -24,7 +24,7 @@ if [ -d "$jekyll_dir" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo -e "${success}Build succeded, now uploading to FTP server${normal}"
|
echo -e "${success}Build succeded, now uploading to FTP server${normal}"
|
||||||
lftp -u ${remote_username},${remote_password} -e "mirror -R -p -P=10 --ignore-time -v ${jekyll_dir}/_site/ ${remote_dir};quit" ftp://${remote_host}
|
lftp -u ${remote_username},${remote_password} -e "mirror -R -p -P=10 --only-newer -v ${jekyll_dir}/_site/ ${remote_dir};quit" ftp://${remote_host}
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
echo -e "${error}FAILED: Something went wrong trying to upload to the FTP server${normal}"
|
echo -e "${error}FAILED: Something went wrong trying to upload to the FTP server${normal}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue