18 lines
416 B
Bash
Executable File
18 lines
416 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
# Set up apt lists.
|
|
cp -rT /usr/local/share/target-sources /etc/apt/sources.list.d
|
|
rm /etc/apt/sources.list
|
|
|
|
USERNAME=soi
|
|
USER_FULLNAME="SOI"
|
|
# Password: soi
|
|
USER_PASSWORD='$y$j9T$h5VhMd4KkdmbxdZD1gO0N/$1hvwZgO8pQw13Xd6jaNXbtkbqVOC4W/ia/KXOcCGYvB'
|
|
|
|
# Create user.
|
|
adduser --disabled-password --gecos "$USER_FULLNAME" "$USERNAME"
|
|
usermod -p "$USER_PASSWORD" "$USERNAME"
|
|
adduser "$USERNAME" noauth
|