diff --git a/pull.lists.sh b/pull.lists.sh index d6e7766..25280cf 100755 --- a/pull.lists.sh +++ b/pull.lists.sh @@ -23,8 +23,7 @@ if [[ -d "${HOME_DIR}/dropbox" ]]; then else mkdir "${HOME_DIR}/dropbox" fi -rclone mount --daemon dropbox:blocklist "${HOME_DIR}/dropbox" --volname dropbox - +rclone mount --daemon dropbox:blocklist "${HOME_DIR}/dropbox" --volname dropbox || { echo "Failed to mount dropbox. Execution terminated!"; exit 1; } cd "${WRK_DIR}/" echo $(date +%d.%m.%y-%H:%M:%S) >| lastpull diff --git a/readme.md b/readme.md index a3f92b6..1327894 100755 --- a/readme.md +++ b/readme.md @@ -65,7 +65,7 @@ exit sudo -s ln -s /home/dietpi/pihole_lists/pull.lists.sh /usr/local/bin/pullLists chmod +x /usr/local/bin/pullLists -echo '5 4 * * * root PATH="/home/linuxbrew/.linuxbrew/bin:/usr/sbin:/usr/local/bin/:$PATH" pullLists >| /home/dietpi/pihole_lists/cron_upd.log || cat /home/dietpi/pihole_lists/cron_upd.log' >| /etc/cron.d/pullLists +echo '30 3 * * * root PATH="/home/linuxbrew/.linuxbrew/bin:/usr/sbin:/usr/local/bin/:$PATH" pullLists >| /home/dietpi/pihole_lists/cron_upd.log || cat /home/dietpi/pihole_lists/cron_upd.log' >| /etc/cron.d/pullLists exit ``` diff --git a/update.pi.sh b/update.pi.sh index c9c1b15..6092280 100755 --- a/update.pi.sh +++ b/update.pi.sh @@ -38,7 +38,7 @@ if [ ! -f "$LOGFILE" ] ; then fi echo "pihole being udpdated on: $(date)" | tee -a "$LOGFILE" -curl -L 'https://www.dropbox.com/sh/oyjii6ndqduixt8/AADn57717lc0TE4AW5dxB0p4a?dl=1' --output ./blocklist.zip && unzip -o ./blocklist.zip +curl -L 'https://www.dropbox.com/sh/oyjii6ndqduixt8/AADn57717lc0TE4AW5dxB0p4a?dl=1' --output ./blocklist.zip && unzip -o ./blocklist.zip -x / rm ./blocklist.zip xz -fd MyBlocklist.txt.xz xz -fd facebook_block.txt.xz