Skip to content

Allow modification when installing #5

@boredsquirrel

Description

@boredsquirrel

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 😄

From Fedora Docs

# 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions