Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Rework chewbranca user creation |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
58019540d0143ccbf53925fd7f210dac |
User & Date: | chewbranca 2020-04-06 18:24:08 |
Context
2020-04-08
| ||
02:54 | Ensure apt update after adding openresty repo check-in: 9da855f5d2 user: chewbranca tags: trunk | |
2020-04-06
| ||
18:24 | Rework chewbranca user creation check-in: 58019540d0 user: chewbranca tags: trunk | |
16:49 | Add attributions file check-in: 651a556aca user: chewbranca tags: trunk | |
Changes
Changes to bootstrap/chewbranca_com.sh.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
mkdir -p /opt/bin
mkdir -p /opt/log
mkdir -p /opt/etc
mkdir -p /opt/service
mkdir -p /opt/museum
if ! id -u chewbranca > /dev/null 2>&1; then
useradd --create-home --shell "/bin/bash" --groups sudo "${USERNAME}"
CSDIR=/home/chewbranca/.ssh
CSAK=$CSDIR/authorized_keys
mkdir -p $CSDIR
if [[ -e $CSAK ]]; then
if ! grep -q chewbranca $CSAK; then
cat files/authorized_keys >> $CSAK
fi
|
| > |
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
mkdir -p /opt/bin mkdir -p /opt/log mkdir -p /opt/etc mkdir -p /opt/service mkdir -p /opt/museum if ! id -u chewbranca > /dev/null 2>&1; then adduser --disabled-password --gecos "" chewbranca adduser chewbranca sudo CSDIR=/home/chewbranca/.ssh CSAK=$CSDIR/authorized_keys mkdir -p $CSDIR if [[ -e $CSAK ]]; then if ! grep -q chewbranca $CSAK; then cat files/authorized_keys >> $CSAK fi |