Last active
March 21, 2016 18:47
-
-
Save davidpdrsn/23f60f778691483aaa7f to your computer and use it in GitHub Desktop.
Script I'm building to setup new Ubuntu box
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/sh | |
| set -e | |
| user=cardistryio | |
| if [[ whoami -eq "root" ]]; then | |
| echo "log-in as root" | |
| exit 1 | |
| else | |
| adduser $user | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment