From a2d5320b35c85c778ad2603b164bf01a2d322267 Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Sun, 1 Oct 2023 09:59:40 +0300 Subject: [PATCH] more --- ansible/www-standalone/tools/promote/_promote.sh | 3 ++- ansible/www-standalone/tools/promote/promote_release.sh | 2 -- ansible/www-standalone/tools/promote/resha_release.sh | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ansible/www-standalone/tools/promote/_promote.sh b/ansible/www-standalone/tools/promote/_promote.sh index 37b602b95..5e54178c4 100755 --- a/ansible/www-standalone/tools/promote/_promote.sh +++ b/ansible/www-standalone/tools/promote/_promote.sh @@ -46,7 +46,6 @@ for subdir in $(cd $srcdir && ls); do fi rm -f "${srcdir}/${subdir}/${donefile}" - . ${__dirname}/upload_to_cloudflare.sh $site $subdir done @@ -54,6 +53,8 @@ for subdir in $(cd $srcdir && ls); do ${__dirname}/_resha.sh $site $dstdir $subdir fi + . ${__dirname}/upload_to_cloudflare.sh $site $subdir + fi done diff --git a/ansible/www-standalone/tools/promote/promote_release.sh b/ansible/www-standalone/tools/promote/promote_release.sh index 947c86e50..f720985f9 100755 --- a/ansible/www-standalone/tools/promote/promote_release.sh +++ b/ansible/www-standalone/tools/promote/promote_release.sh @@ -37,8 +37,6 @@ while true; do if [ "X${yorn}" == "Xy" ]; then . ${__dirname}/_promote.sh $site $2 nodejs-latest-linker /home/dist/${site}/release/ /home/dist/${site}/docs/ - dstdir=/home/dist/${site}/docs - . ${__dirname}/upload_to_cloudflare.sh $site $2 break fi done diff --git a/ansible/www-standalone/tools/promote/resha_release.sh b/ansible/www-standalone/tools/promote/resha_release.sh index 8bd6f4a1f..86fd92694 100755 --- a/ansible/www-standalone/tools/promote/resha_release.sh +++ b/ansible/www-standalone/tools/promote/resha_release.sh @@ -25,4 +25,6 @@ fi ${__dirname}/_resha.sh $site $dstdir $2 +. ${__dirname}/upload_to_cloudflare.sh $site $2 + /home/nodejs/queue-cdn-purge.sh $site resha_release