]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Updates trashman provisioner
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 19 Jul 2018 17:41:56 +0000 (14:41 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 19 Jul 2018 17:41:56 +0000 (14:41 -0300)
share/provision/trashman

index dc1ea63e95e3d38c96f9701bae8824585933182f..b1f7bc5a02b7d20f6f9e349723aeefb2a0565b80 100755 (executable)
@@ -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