diff options
author | Karel Kočí <karel.koci@nic.cz> | 2020-07-27 11:37:48 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2020-07-27 11:37:48 +0200 |
commit | bcab686cae0caa6698ac9094f7d9020c387e33bf (patch) | |
tree | 4506ff57c4369b14758a28d4a7cb142c6ddc36b5 | |
parent | 2021859b9b7698a5dbb066385e2fd20681bae6b2 (diff) | |
download | laminar-cnf-bcab686cae0caa6698ac9094f7d9020c387e33bf.tar.gz laminar-cnf-bcab686cae0caa6698ac9094f7d9020c387e33bf.tar.bz2 laminar-cnf-bcab686cae0caa6698ac9094f7d9020c387e33bf.zip |
alpine: fix sftp command
-rwxr-xr-x | templates/alpine.run | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/templates/alpine.run b/templates/alpine.run index dce5dda..7f35cb7 100755 --- a/templates/alpine.run +++ b/templates/alpine.run @@ -68,12 +68,10 @@ uroot cp "$FILES/alpine/abuild.conf" "$ROOT/etc/abuild.conf" uchroot build 'buildrepo --purge --keep-going personal' echo_stage "Deploy" -sftp -b - upload <<EOF - !rm -rf "deploy-alpine-$ARCH" - put -R "$WORKSPACE/packages/personal/$ARCH" "deploy-alpine-$ARCH" - !rm -rf "/var/www/repo/alpine/$ARCH" - mv "deploy-alpine-$ARCH" "/var/www/repo/alpine/$ARCH" - - put "$FILES"/alpine/setup.sh /var/www/repo/alpine/ - put "$FILES"/alpine/setup.sh.gpg /var/www/repo/alpine/ +sftp -b - upload:/var/www/repo <<EOF + !mkdir -p alpine + !rm -rf "alpine/$ARCH" + put -R "$WORKSPACE/packages/personal/$ARCH" "alpine/$ARCH" + put "$FILES"/alpine/setup.sh alpine/ + put "$FILES"/alpine/setup.sh.gpg alpine/ EOF |