User Tools

Site Tools


synology:pihole_synology

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
synology:pihole_synology [2019/06/02 19:56] Wulf Rajeksynology:pihole_synology [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 95: Line 95:
 vi /usr/local/etc/rc.d/S99pihole.sh vi /usr/local/etc/rc.d/S99pihole.sh
 </code> </code>
-<code>+<code - /usr/local/etc/rc.d/S99pihole.sh>
 #!/bin/sh #!/bin/sh
  
Line 101: Line 101:
  
 case $1 in case $1 in
-        start) +    start) 
-            /var/packages/debian-chroot/scripts/start-stop-status start +        /var/packages/debian-chroot/scripts/start-stop-status start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd start 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL start +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL start 
-        ;; +    ;; 
-        stop) +    stop) 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron stop +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service cron stop 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd stop +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service lighttpd stop 
-                chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL stop +        chroot /volume1/@appstore/debian-chroot/var/chroottarget service pihole-FTL stop 
-                /var/packages/debian-chroot/scripts/start-stop-status stop +        /var/packages/debian-chroot/scripts/start-stop-status stop 
-        ;; +    ;; 
-        restart) +    restart) 
-                $0 stop +        $0 stop 
-                sleep 1 +        sleep 1 
-                $0 start +        $0 start 
-        ;; +    ;; 
-        *) +    *) 
-                echo "Usage: $0 start|stop|restart" +        echo "Usage: $0 start|stop|restart" 
-        ;;+    ;;
 esac esac
 </code> </code>
Line 147: Line 147:
 sudo /var/packages/debian-chroot/scripts/start-stop-status chroot sudo /var/packages/debian-chroot/scripts/start-stop-status chroot
  
-pihole -up+#Regular update fails on synology due to not being able to check disk space, use override option 'do not follow recommendations' instead. 
 +#pihole -up 
 +curl -L https://install.pi-hole.net | bash /dev/stdin --i_do_not_follow_recommendations
  
 #change the webserver port again: #change the webserver port again:
-vi /etc/lighttpd/lighttpd.conf - change the port+#vi /etc/lighttpd/lighttpd.conf - change the port
 sed -i 's/server.port\(.*\)= 80/server.port\1= 2080/g' /etc/lighttpd/lighttpd.conf sed -i 's/server.port\(.*\)= 80/server.port\1= 2080/g' /etc/lighttpd/lighttpd.conf
  
Line 160: Line 162:
  
 #update might require: #update might require:
-From /etc/.pihole do a git pull+cd /etc/.pihole 
 +git pull
 </code> </code>
  
synology/pihole_synology.1559501774.txt.gz · Last modified: (external edit)