mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-22 06:23:01 +00:00
Fix lftp
This commit is contained in:
parent
e9d1002a55
commit
47faf69797
1 changed files with 3 additions and 3 deletions
6
build
6
build
|
@ -323,12 +323,12 @@ task_deploy() {
|
||||||
lftp_commands_filename="$(mktemp --suffix "-commands.lftp")";
|
lftp_commands_filename="$(mktemp --suffix "-commands.lftp")";
|
||||||
|
|
||||||
(
|
(
|
||||||
echo "set sftp:connect-program 'ssh -x -i \"${SSH_KEY_PATH}\"'";
|
echo "set sftp:connect-program 'ssh -x -i ${SSH_KEY_PATH}'";
|
||||||
# We have an extra : before the @ here to avoid the password prompt
|
# We have an extra : before the @ here to avoid the password prompt
|
||||||
echo "connect sftp://${deploy_ssh_user}:@${deploy_ssh_host}:${deploy_ssh_port}";
|
echo "connect sftp://${deploy_ssh_user}:@${deploy_ssh_host}:${deploy_ssh_port}";
|
||||||
|
|
||||||
echo "mirror -R -P 3 -r \"${source_upload_dir}\" \"${deploy_root_dir}/www-new\"";
|
echo "mirror -R -P 3 \"${source_upload_dir}\" \"${deploy_root_dir}/www-new\"";
|
||||||
echo "ln -s \"${deploy_root_dir}/data\" \"${deploy_root_dir}/www-new/data\"";
|
echo "ln -s \"../${deploy_root_dir}/data\" \"${deploy_root_dir}/www-new/data\"";
|
||||||
|
|
||||||
echo "mv \"${deploy_root_dir}/www\" \"${deploy_root_dir}/www-old\"";
|
echo "mv \"${deploy_root_dir}/www\" \"${deploy_root_dir}/www-old\"";
|
||||||
echo "mv \"${deploy_root_dir}/www-new\" \"${deploy_root_dir}/www\"";
|
echo "mv \"${deploy_root_dir}/www-new\" \"${deploy_root_dir}/www\"";
|
||||||
|
|
Loading…
Reference in a new issue