blob: c9e6bba6fd7a355f975dd5380e7af29f14d064f3 (
plain)
1
2
3
4
5
6
7
8
9
10
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'
|