Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to be able to choose to debug, instal and uninstall #8

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

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