Commit e6115494 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Enable cron directories on upgrade

parent 96bd944f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
#!/usr/bin/awk -f

/cron.daily/{daily_found=1}
/cron.weekly/{weekly_found=1}
{print}

END{
	if (!daily_found) print \
		"0 10 * * *  run-parts --report ~/.config/cron.daily"
	if (!weekly_found) print \
		"0 10 * * 1  run-parts --report ~/.config/cron.weekly"
}
+5 −0
Original line number Diff line number Diff line
@@ -201,6 +201,11 @@ do_update()
			systemctl --user enable "${unit##*/}" 2>/dev/null
		done
	fi

	# enable cron scripts
	{ crontab -l || true; } |
		~/.shell/lib/cron-append.awk |
		crontab -
}

has resize || resize() {