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:
authornachoparker <nacho@ownyourbits.com>2019-06-04 05:51:51 +0300
committernachoparker <nacho@ownyourbits.com>2019-06-04 14:36:03 +0300
commit81ca69a058765f44533e19fedb30e1a4f4d55cd7 (patch)
tree6307bf1c0d863a035336e8147e70691ae1426b88 /update.sh
parent5de855ffecc49899a58d6078fb45afe42d3fe43a (diff)
fix upgrade
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh18
1 files changed, 8 insertions, 10 deletions
diff --git a/update.sh b/update.sh
index e06a5cd0..e7809215 100755
--- a/update.sh
+++ b/update.sh
@@ -135,9 +135,16 @@ cp -r ncp-app /var/www/
# for non docker images
[[ ! -f /.docker-image ]] && {
+ cat > /etc/fail2ban/filter.d/ufwban.conf <<'EOF'
+[INCLUDES]
+before = common.conf
+[Definition]
+failregex = UFW BLOCK.* SRC=
+ignoreregex =
+EOF
:
}
-
+
# update to the latest version
is_active_app nc-autoupdate-nc && run_app nc-autoupdate-nc
@@ -231,15 +238,6 @@ EOF
# fix logrotate files
chmod 0444 /etc/logrotate.d/*
- # update fail2ban filters
- cat > /etc/fail2ban/filter.d/ufwban.conf <<'EOF'
-[INCLUDES]
-before = common.conf
-[Definition]
-failregex = UFW BLOCK.* SRC=
-ignoreregex =
-EOF
-
# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
# Bug #416 reappeared after we moved to php7.2 and debian buster packages. (keep last)
[[ "$( ls -l /etc/php/7.2/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/fpm/conf.d/*-opcache.ini | tail -1 )"