This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Makedomain command | |
| # --- | |
| # script can run with the domain as a command line input | |
| # `sudo ./nginx_domain.sh my_domain.com` or without and | |
| # the script will prompt the user for input | |
| # | |
| # BTW: You can make it global e.g. by: | |
| # sudo ln -s /opt/delagics/makedomain.sh /usr/bin/makedomain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Please, enter your username, it will be added to 'sudo' and 'docker' groups during the process." | |
| read USERNAME | |
| if [ -z "$USERNAME" ] ; then | |
| echo "Exiting... Done." | |
| exit | |
| else | |
| echo "Adding user to 'sudo' group..." |
NewerOlder