Skip to content

Commit

Permalink
v6.29
Browse files Browse the repository at this point in the history
+ DietPi Cron.Daily | Fix wrong syntax which prevents daily MOTD update
  • Loading branch information
MichaIng authored Jan 21, 2020
1 parent 3e5b7b4 commit ffc2553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/etc/cron.daily/dietpi
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
fi
#----------------------------------------------------------------
# DietPi-Sync daily
if [[ -f '/DietPi/dietpi/.dietpi-sync_settings' ]] && grep -q 'SYNC_CRONDAILY=1' /DietPi/dietpi/.dietpi-sync_settings; then
if [[ -f '/DietPi/dietpi/.dietpi-sync_settings' ]] && grep -q '^[[:blank:]]*SYNC_CRONDAILY=1' /DietPi/dietpi/.dietpi-sync_settings; then

/DietPi/dietpi/dietpi-sync 1 &> /dev/null &

fi
#----------------------------------------------------------------
# Refresh DietPi MOTD
if [[ -f '/DietPi/dietpi/.dietpi-banner' ]] && grep -q 'aENABLED[12]=1' /DietPi/dietpi/.dietpi-banner; then
if [[ -f '/DietPi/dietpi/.dietpi-banner' ]] && grep -q '^[[:blank:]]*aENABLED\[12\]=1' /DietPi/dietpi/.dietpi-banner; then

curl -sL https://dietpi.com/motd > /tmp/.dietpi_motd &

Expand Down

0 comments on commit ffc2553

Please sign in to comment.