From 1cb78494f3022fe9d808d070507bddf552c64753 Mon Sep 17 00:00:00 2001 From: Casper Date: Wed, 18 Dec 2024 15:21:28 -0700 Subject: Initial commit, new repo --- scripts/push-salt-to-emacs.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/push-salt-to-emacs.sh (limited to 'scripts/push-salt-to-emacs.sh') diff --git a/scripts/push-salt-to-emacs.sh b/scripts/push-salt-to-emacs.sh new file mode 100755 index 0000000..c9e6bba --- /dev/null +++ b/scripts/push-salt-to-emacs.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash +if [ "$EUID" -ne 0 ] + then echo "Please run as root" + exit +fi +qvm-copy-to-vm emacs-salt /srv/user_salt +qvm-run emacs-salt 'mv /home/user/Documents/salt-repo/.git /tmp/salt.git' +qvm-run emacs-salt 'rm -fr /home/user/Documents/salt-repo/*' +qvm-run emacs-salt 'mv /tmp/salt.git /home/user/Documents/salt-repo/.git' +qvm-run emacs-salt 'mv /home/user/QubesIncoming/dom0/user_salt/* /home/user/Documents/salt-repo/' +qvm-run emacs-salt 'rm -fr /home/user/QubesIncoming/dom0/user_salt' -- cgit v1.2.3