From 17369890d23d0e959fb6c0a694feff299a897a86 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Tue, 25 Aug 2020 18:09:45 +0000 Subject: [PATCH] fix .cache perms on update --- update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 88698772..7ef44ba8 100644 --- a/update.sh +++ b/update.sh @@ -1,6 +1,6 @@ #!/bin/bash -SCRIPT_VERSION="5" +SCRIPT_VERSION="6" SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/develop/update.sh' YELLOW='\033[1;33m' GREEN='\033[0;32m' @@ -29,12 +29,14 @@ do sudo systemctl stop ${i} done + sudo chown ${USER}:${USER} -R /rmm sudo chown ${USER}:${USER} /var/log/celery sudo chown ${USER}:${USER} -R /srv/salt/ sudo chown ${USER}:www-data /srv/salt/scripts/userdefined sudo chown -R $USER:$GROUP /home/${USER}/.npm sudo chown -R $USER:$GROUP /home/${USER}/.config +sudo chown -R $USER:$GROUP /home/${USER}/.cache sudo chmod 750 /srv/salt/scripts/userdefined cd /rmm