mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-25 06:53:00 +00:00
build: Don't use glob anymore
This commit is contained in:
parent
02a73e4ade
commit
4cacba2afb
1 changed files with 3 additions and 1 deletions
4
build
4
build
|
@ -323,8 +323,10 @@ task_deploy() {
|
||||||
(
|
(
|
||||||
echo "set sftp:connect-program 'ssh -x -i \"${SSH_KEY_PATH}\" -p \"${deploy_ssh_port}\" -o \"PasswordAuthentication=no\"'";
|
echo "set sftp:connect-program 'ssh -x -i \"${SSH_KEY_PATH}\" -p \"${deploy_ssh_port}\" -o \"PasswordAuthentication=no\"'";
|
||||||
echo "connect sftp://${deploy_ssh_user}:@${deploy_ssh_host}";
|
echo "connect sftp://${deploy_ssh_user}:@${deploy_ssh_host}";
|
||||||
echo "glob mirror -R -P 3 -r \"${source_upload_dir}\" \"${deploy_root_dir}/www-new\""
|
|
||||||
|
echo "mirror -R -P 3 -r \"${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\"";
|
||||||
echo "rm -r \"${deploy_root_dir}/www-old\"";
|
echo "rm -r \"${deploy_root_dir}/www-old\"";
|
||||||
|
|
Loading…
Reference in a new issue