silverblue-update
silverblue-update copied to clipboard
Allow modification when installing
trafficstars
I currently really dont have time, but its very easy in bash to do yes/no or input dialogs.
It is nessecary for people to choose things like interval, when to apply, or others like if apply on boot.
while true; do
read -p "Do you want that? (y/n) " yn
case $yn in
[Yy]* ) do something && break;;
[Nn]* ) break;;
* ) echo "Please answer yes or no.";;
esac
done
read -p "How often do you want to do updates? " interval
echo $interval
And so on. I think you already know that stuff, just to make it quicker :smile:
# run on the minute of every minute every hour of every day
OnCalendar=*-*-* *:*:00
# run on the hour of every hour of every day
OnCalendar=*-*-* *:00:00
# run every day
OnCalendar=*-*-* 00:00:00
# run 11:12:13 of the first or fifth day of any month of the year
# 2012, but only if that day is a Thursday or Friday
OnCalendar=Thu,Fri 2012-*-1,5 11:12:13
so like ask for every digit in the OnCalendar and then construct the thing e.g.
Sorry! Rough week for me. I’ll look at your PR this weekend. Thanks for contributing!
Haha no problem. Good luck!