diff options
Diffstat (limited to 'scripts/push-salt-to-emacs.sh')
-rwxr-xr-x | scripts/push-salt-to-emacs.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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' |