mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Change installScripts to use install
Use the install program instead of copying files and directories in installScripts function.
This commit is contained in:
parent
ca0cbd68d6
commit
5382b4fa37
1 changed files with 2 additions and 5 deletions
|
@ -526,11 +526,8 @@ installScripts() {
|
|||
# Install the scripts from /etc/.pihole to their various locations
|
||||
${SUDO} echo ":::"
|
||||
${SUDO} echo -n "::: Installing scripts to /opt/pihole..."
|
||||
if [ ! -d /opt/pihole ]; then
|
||||
${SUDO} mkdir /opt/pihole
|
||||
${SUDO} chown "$USER":root /opt/pihole
|
||||
${SUDO} chmod u+srwx /opt/pihole
|
||||
fi
|
||||
${SUDO} install -o ${USER} -m755 -d /opt/pihole
|
||||
|
||||
${SUDO} cp /etc/.pihole/gravity.sh /opt/pihole/gravity.sh
|
||||
${SUDO} cp /etc/.pihole/advanced/Scripts/chronometer.sh /opt/pihole/chronometer.sh
|
||||
${SUDO} cp /etc/.pihole/advanced/Scripts/whitelist.sh /opt/pihole/whitelist.sh
|
||||
|
|
Loading…
Reference in a new issue