diff options
Diffstat (limited to 'sh/mpra')
| -rwxr-xr-x | sh/mpra | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -58,7 +58,12 @@ else done fi -[ "$copy_any" ] && sudo rsync -vPrlu --delete ../repo/ /srv/http/mirrors/archlinux/fly/os/any +if [ "$copy_any" ]; then + ssh -t -- xyz@mirrors.flylightning.xyz '[ -d programs/repos/fly/any/repo ] || mkdir -p programs/repos/fly/any/repo' + rsync -avP --delete ../repo/ xyz@mirrors.flylightning.xyz:programs/repos/fly/any/repo + echo 'Wait for mirrors.flylightning.xyz sudo prompt and enter password:' + ssh -t -- xyz@mirrors.flylightning.xyz 'sudo rsync -vPrlu --delete programs/repos/fly/any/repo/ /srv/http/mirrors/archlinux/fly/os/any' +fi if [ "$copy" ]; then if ! [ -d /var/lib/mpra ]; then |
