Extra directory
This commit is contained in:
parent
b16738fd5f
commit
8560f928cd
|
@ -54,6 +54,10 @@ pihole_variables=(ONION_ONLY
|
||||||
PIHOLE_DNS2)
|
PIHOLE_DNS2)
|
||||||
|
|
||||||
function pihole_copy_files {
|
function pihole_copy_files {
|
||||||
|
if [ ! -d /etc/.pihole ]; then
|
||||||
|
mkdir /etc/.pihole
|
||||||
|
fi
|
||||||
|
cp $INSTALL_DIR/pihole/adlists.default /etc/.pihole/adlists.default
|
||||||
cp $INSTALL_DIR/pihole/adlists.default $piholeDir/adlists.default
|
cp $INSTALL_DIR/pihole/adlists.default $piholeDir/adlists.default
|
||||||
cp $piholeDir/adlists.default $piholeDir/adlists.list
|
cp $piholeDir/adlists.default $piholeDir/adlists.list
|
||||||
#cp $INSTALL_DIR/pihole/adlists.default $PIHOLE_ADLIST
|
#cp $INSTALL_DIR/pihole/adlists.default $PIHOLE_ADLIST
|
||||||
|
@ -337,6 +341,10 @@ function remove_pihole {
|
||||||
rm -rf $piholeDir
|
rm -rf $piholeDir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d /etc/.pihole ]; then
|
||||||
|
rm -rf /etc/.pihole
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f /var/log/pihole.log ]; then
|
if [ -f /var/log/pihole.log ]; then
|
||||||
rm /var/log/pihole.log
|
rm /var/log/pihole.log
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue