From 2ad2312b223de2ab956466439233df3a52b0cb41 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 3 Apr 2023 07:45:45 -0300 Subject: Makefile: Use "deployer" user in "upload" target --- Makefile | 7 +++++-- 1 file 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 -- cgit v1.2.3