diff options
author | EuAndreh <eu@euandre.org> | 2023-04-03 07:45:45 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-03 07:45:45 -0300 |
commit | 2ad2312b223de2ab956466439233df3a52b0cb41 (patch) | |
tree | afe195eeaff811613020d3664209a199d1e14ce3 | |
parent | etc/guix/home.scm: Place pax-utils in the correct list (diff) | |
download | dotfiles-2ad2312b223de2ab956466439233df3a52b0cb41.tar.gz dotfiles-2ad2312b223de2ab956466439233df3a52b0cb41.tar.xz |
Makefile: Use "deployer" user in "upload" target
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |