Skip to content
Snippets Groups Projects
Commit 8560f928 authored by Bob Mottram's avatar Bob Mottram
Browse files

Extra directory

parent b16738fd
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,10 @@ pihole_variables=(ONION_ONLY
PIHOLE_DNS2)
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 $piholeDir/adlists.default $piholeDir/adlists.list
#cp $INSTALL_DIR/pihole/adlists.default $PIHOLE_ADLIST
......@@ -337,6 +341,10 @@ function remove_pihole {
rm -rf $piholeDir
fi
if [ -d /etc/.pihole ]; then
rm -rf /etc/.pihole
fi
if [ -f /var/log/pihole.log ]; then
rm /var/log/pihole.log
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment