diff --git a/ansible/www-standalone/tools/promote/_resha.sh b/ansible/www-standalone/tools/promote/_resha.sh index 20e985fff..5b1003532 100755 --- a/ansible/www-standalone/tools/promote/_resha.sh +++ b/ansible/www-standalone/tools/promote/_resha.sh @@ -43,7 +43,9 @@ nodejs-dist-indexer --dist $dstdir --indexjson ${dstdir}/index.json --indextab find "${dstdir}/${version}" -type f -exec chmod 644 '{}' \; find "${dstdir}/${version}" -type d -exec chmod 755 '{}' \; -relativedir=${dstdir/$dist_rootdir/"$site/"} -rclone copyto ${dstdir}/index.json $staging_bucket/$relativedir/index.json > /dev/null -rclone copyto ${dstdir}/index.tab $staging_bucket/$relativedir/index.tab > /dev/null -rclone copyto ${dstdir}/${version}/SHASUMS256.txt $staging_bucket/$relativedir/${version}/SHASUMS256.txt > /dev/null +relative_srcdir=${srcdir/$staging_rootdir/"$site/"} +relative_dstdir=${dstdir/$dist_rootdir/"$site/"} + +rclone copyto --log-file=${rclone_log} ${dstdir}/index.json $staging_bucket/$relative_dstdir/index.json > /dev/null +rclone copyto --log-file=${rclone_log} ${dstdir}/index.tab $staging_bucket/$relative_dstdir/index.tab > /dev/null +rclone copyto --log-file=${rclone_log} ${dstdir}/${version}/SHASUMS256.txt $staging_bucket/$relative_srcdir/${version}/SHASUMS256.txt > /dev/null