Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/update.sh b/update.sh
index fde639f9..5b9db840 100755
--- a/update.sh
+++ b/update.sh
@@ -14,11 +14,11 @@ source /usr/local/etc/library.sh
# fix automount, reinstall if its old version
AMFILE=/usr/local/etc/nextcloudpi-config.d/nc-automount.sh
-grep -q inotify-tools $AMFILE || rm $AMFILE
+test -e $AMFILE && { grep -q inotify-tools $AMFILE || rm $AMFILE; }
# fix modsecurity, reinstall if its old verion
MSFILE=/usr/local/etc/nextcloudpi-config.d/modsecurity.sh
-grep -q "NextCloudPi:" $MSFILE || rm $MSFILE
+test -e $MSFILE && { grep -q "NextCloudPi:" $MSFILE || rm $MSFILE; }
# copy all files in bin and etc
for file in bin/* etc/*; do