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>2017-04-07 01:40:46 +0300
committernachoparker <nacho@ownyourbits.com>2017-04-07 01:40:46 +0300
commit714f6b2a79576d2c9f967d3cab4d9311fe889d1a (patch)
tree82b42c6ab93abce41fd1bceba84c2f4553150378
parenta17c39313b0b08c41acd69f092a847dcf46e8a57 (diff)
fixes enabling servicesv0.5.10
-rwxr-xr-xetc/nextcloudpi-config.d/dnsmasq.sh3
-rwxr-xr-xetc/nextcloudpi-config.d/fail2ban.sh1
-rwxr-xr-xetc/nextcloudpi-config.d/no-ip.sh1
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
}