Skip to content

Conversation

@knockimov
Copy link

Your shell script is now able to enable debug and to install or uninstall depending och flag used.
More changes made:

  • sudo / root check, exit if not
  • checking if packages are installed before trying to install them.
  • able to choose different login name and password for web page
  • changed installation path to accomodate more possible distros, not just RPi
  • added few descriptions on different functions
  • changed a few messages presented to user
  • backups of system files before making changes

There still might be some bugs.

Hope you find it helpfull :)

mv /etc/nginx/sites-enabled/default ~/nginx_hydrosys.backup
mv /usr/local/share/hydrosys4/nginx_hydrosys.backup /etc/nginx/sites-enabled/default
echo "--> Reverting changes made to rc.local. Moving backed up config file to /etc/rc.local. Saving running file to ~/rc_hydrosys.backup"
mv /etc/rc.local ~/rc_hydrosys.backup

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only move if backup file exists (and maybe is valid), do not risk your rc.local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants