aboutsummaryrefslogtreecommitdiff
path: root/share/provision/trashman
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-07-19 14:41:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-07-19 14:41:56 -0300
commitd96da0f9587273ae5e2065406191dc4bb28ff384 (patch)
tree5db6bdf00c0c6b81c3c47785a885ed89bcae02b9 /share/provision/trashman
parent9def1c431daa992bf04353694af5c6d794ac2407 (diff)
downloadkvmx-d96da0f9587273ae5e2065406191dc4bb28ff384.tar.gz
kvmx-d96da0f9587273ae5e2065406191dc4bb28ff384.tar.bz2
Updates trashman provisioner
Diffstat (limited to 'share/provision/trashman')
-rwxr-xr-xshare/provision/trashman8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/provision/trashman b/share/provision/trashman
index dc1ea63..b1f7bc5 100755
--- a/share/provision/trashman
+++ b/share/provision/trashman
@@ -26,6 +26,12 @@ APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
# Install requirements
$APT_INSTALL git rsync
+# Get trashman
+if [ -d "/usr/local/share/trashman" ]; then
+ ( cd /usr/local/share/trashman && sudo git pull )
+else
+ sudo git clone https://git.fluxo.info/trashman /usr/local/share/trashman
+fi
+
# Install trashman
-sudo git clone https://git.fluxo.info/trashman /usr/local/share/trashman
sudo /usr/local/share/trashman/trashman install trashman