Last active
November 15, 2017 01:02
-
-
Save shvchk/d8d3f1de8253069094f320bf50ec1aaf to your computer and use it in GitHub Desktop.
This file contains 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
#! /usr/bin/env sh | |
USERNAME="support" | |
AVATAR_URL="https://shevchuk.co/cog.png" | |
AVATAR_FILE="/home/$USERNAME/.face" | |
sudo adduser --uid 555 --gecos "" $USERNAME | |
sudo adduser $USERNAME sudo | |
sudo wget -qO $AVATAR_FILE $AVATAR_URL | |
sudo chown $USERNAME:$USERNAME $AVATAR_FILE | |
sudo tee /var/lib/AccountsService/users/support << EOF > /dev/null | |
[User] | |
Icon=$AVATAR_FILE | |
SystemAccount=true | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment