Commit graph

10 commits

Author SHA1 Message Date
ryt51V
d0bc596adb Forgot to install / uninstall the include file. 2016-03-04 10:07:46 +00:00
ryt51V
8a0c173610 Fixed more missing "$0" in sudo 2016-03-02 21:18:32 +00:00
ryt51V
0079aa6f3e uninstall.sh now removes updateDashboard.sh 2016-03-02 20:53:28 +00:00
ryt51V
9a68adf36f Big sudo refactor.
In general:
- Each script reruns itself as either root or pihole.  Any $SUDO variables are removed.
- Two new scripts are created that need to be run as root.
- The installer creates a file in sudoers.d that allows the pihole user to run the above two scripts as root.

piholeReloadServices.sh: Script to reload dnsmasq (or start it if required).

piholeSetPermissions.sh: Script to set the permissions on /etc/pihole

basic-install.sh:
- Copy two new scripts.
- Set owner and permissions on /etc/pihole
- Install the sudoers file to allow the pihole user to run certain scripts as root without a password.

uninstall.sh:
- Remote two new scripts.
- Remove sudoers file

gravity.sh:
- Rerun as pihole user.
- Use sudo for setting permissions and reloading services.
- Replaced chmod 777 with piholeSetPermissions.sh.

blacklist.sh, whitelist.sh: Rerun as pihole user.  Use sudo for reloading services.
chronometer.sh, piholeLogFlush.sh: Rerun as pihole user.

setupLCD.sh: Rerun as root.
2016-03-02 20:49:23 +00:00
ryt51V
3eb6739263 Installer and uninstaller now rerun themselves as root using sudo at the start of the script, rather than run individual commands with sudo. 2016-03-02 19:28:33 +00:00
Mcat12
48f9a61ff0 Updated License 2016-01-30 15:12:40 -05:00
jacobsalmela
0a0f00da3b fixes #169
exits if sudo is not installed when run as a regular user
2016-01-16 14:10:03 -06:00
jacobsalmela
bee109c784 better uninstall
More from JoshKastang.  This closes #153 as it is the last step from
his ideas.
2016-01-16 13:56:08 -06:00
Dan Schaper
22d0e82d92 Add GPL V2+ header 2015-12-06 06:31:49 -08:00
Jacob Salmela
4e50a03dfc uninstall script
This should remove the Pi-hole.
2015-11-21 13:29:03 -06:00