aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8e00e8a..f5a0d88 100644
--- a/Makefile
+++ b/Makefile
@@ -168,9 +168,12 @@ clean:
VM-DIR = /srv/www/s/vm
upload:
- rsync -avP --exclude mint-x86_64-cinnamon.qcow2 \
+ rsync \
+ --rsync-path='sudo -u deployer rsync' \
+ -avP \
+ --exclude mint-x86_64-cinnamon.qcow2 \
$(XDG_STATE_HOME)/vm/qemu/ euandre.org:$(VM-DIR)/qemu/
ssh euandre.org find $(VM-DIR)/qemu/ -type f | \
sed 's|^$(VM-DIR)/qemu/||' | \
sed 's|\.qcow2$$||' | \
- ssh euandre.org dd of=$(VM-DIR)/vms.txt
+ ssh euandre.org sudo -u deployer dd of=$(VM-DIR)/vms.txt