aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-03 07:45:45 -0300
committerEuAndreh <eu@euandre.org>2023-04-03 07:45:45 -0300
commit2ad2312b223de2ab956466439233df3a52b0cb41 (patch)
treeafe195eeaff811613020d3664209a199d1e14ce3
parentetc/guix/home.scm: Place pax-utils in the correct list (diff)
downloaddotfiles-2ad2312b223de2ab956466439233df3a52b0cb41.tar.gz
dotfiles-2ad2312b223de2ab956466439233df3a52b0cb41.tar.xz
Makefile: Use "deployer" user in "upload" target
-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