From d96da0f9587273ae5e2065406191dc4bb28ff384 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 19 Jul 2018 14:41:56 -0300 Subject: Updates trashman provisioner --- share/provision/trashman | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'share') 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 -- cgit v1.2.3