Ask for all the details required in .properties file interactively.
Store the details in godaddy-ddns.properties file.
Interactive session should not be enabled when the script is run by cron job.
User should have access to update the details in case he need it in future by manually running same script.
e.g.
To setup for first time interactivley, User can run:
sudo bash godaddy-ddns.sh setup
To update the properties, User can run:
sudo bash godaddy-ddns.sh update
When cronjob runs this script, It should run as:
sudo bash godaddy-ddns.sh nointeraction
When user or cron runs the script, without any argument or any other argument which do not have any action associated to it. It should print a message with help page and example and exit the script.
When the script is run for first time:
e.g. To setup for first time interactivley, User can run:
sudo bash godaddy-ddns.sh setup
To update the properties, User can run:
sudo bash godaddy-ddns.sh update
When cronjob runs this script, It should run as:
sudo bash godaddy-ddns.sh nointeraction
When user or cron runs the script, without any argument or any other argument which do not have any action associated to it. It should print a message with help page and example and exit the script.