diff options
-rwxr-xr-x | etc/nextcloudpi-config.d/dnsmasq.sh | 3 | ||||
-rwxr-xr-x | etc/nextcloudpi-config.d/fail2ban.sh | 1 | ||||
-rwxr-xr-x | etc/nextcloudpi-config.d/no-ip.sh | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/dnsmasq.sh b/etc/nextcloudpi-config.d/dnsmasq.sh index 657c51cf..81ac3a3d 100755 --- a/etc/nextcloudpi-config.d/dnsmasq.sh +++ b/etc/nextcloudpi-config.d/dnsmasq.sh @@ -42,9 +42,10 @@ server=$DNSSERVER_ address=/$DOMAIN_/$IP_ # This is optional if we add it to /etc/hosts EOF - sed 's|#\?IGNORE_RESOLVCONF=.*|IGNORE_RESOLVCONF=yes|' /etc/default/dnsmasq + sed -i 's|#\?IGNORE_RESOLVCONF=.*|IGNORE_RESOLVCONF=yes|' /etc/default/dnsmasq update-rc.d dnsmasq defaults + update-rc.d dnsmasq enable service dnsmasq restart cd /var/www/nextcloud sudo -u www-data php occ config:system:set trusted_domains 2 --value=$DOMAIN_ diff --git a/etc/nextcloudpi-config.d/fail2ban.sh b/etc/nextcloudpi-config.d/fail2ban.sh index 758c78c0..cc2add4a 100755 --- a/etc/nextcloudpi-config.d/fail2ban.sh +++ b/etc/nextcloudpi-config.d/fail2ban.sh @@ -113,6 +113,7 @@ logpath = $NCLOG_ maxretry = $MAXRETRY_ EOF update-rc.d fail2ban defaults + update-rc.d fail2ban enable service fail2ban restart } diff --git a/etc/nextcloudpi-config.d/no-ip.sh b/etc/nextcloudpi-config.d/no-ip.sh index 0cffbd2a..afaaf55b 100755 --- a/etc/nextcloudpi-config.d/no-ip.sh +++ b/etc/nextcloudpi-config.d/no-ip.sh @@ -57,6 +57,7 @@ configure() /usr/local/bin/noip2 -C -c /usr/local/etc/no-ip2.conf -U $TIME_ -u $USER_ -p $PASS_ update-rc.d noip2 defaults + update-rc.d noip2 enable service noip2 restart } |