File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99case $1 in
1010 " config" )
11- # Recreate the config file if it doesn't exist
12- if [ ! -f " /etc/pihole-updatelists/pihole-updatelists.conf" ]; then
13- cp /etc/pihole-updatelists.conf /etc/pihole-updatelists/pihole-updatelists.conf
11+ # Create the config file if it doesn't exist
12+ if [ ! -f /etc/pihole-updatelists/pihole-updatelists.conf ] && [ -f /etc/pihole-updatelists.conf.base ]; then
13+ cp /etc/pihole-updatelists.conf.base /etc/pihole-updatelists/pihole-updatelists.conf
1414 echo " [i] Created /etc/pihole-updatelists/pihole-updatelists.conf"
1515 fi
1616
Original file line number Diff line number Diff line change @@ -303,6 +303,8 @@ if [ "$DOCKER" == 1 ]; then
303303
304304 chmod -v +x /usr/bin/pihole-updatelists.sh
305305 mkdir -vp /etc/pihole-updatelists
306+ mv -v /etc/pihole-updatelists.conf /etc/pihole-updatelists.conf.base
307+ ln -sv /etc/pihole-updatelists/pihole-updatelists.conf /etc/pihole-updatelists.conf
306308
307309 if ! grep -q " pihole-updatelists" /crontab.txt; then
308310 # Use the same schedule string to also have it randomized
You can’t perform that action at this time.
0 commit comments