Skip to content

Commit

Permalink
fixes enabling services
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Apr 6, 2017
1 parent a17c393 commit 714f6b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/nextcloudpi-config.d/dnsmasq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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_
Expand Down
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/fail2ban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ logpath = $NCLOG_
maxretry = $MAXRETRY_
EOF
update-rc.d fail2ban defaults
update-rc.d fail2ban enable
service fail2ban restart
}

Expand Down
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/no-ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 714f6b2

Please sign in to comment.