chewbranca.com

Check-in [58019540d0]
Login

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: 58019540d0143ccbf53925fd7f210dac800ca5d9818e7618bafe32533a85d4af
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
Hide Diffs Unified Diffs Ignore Whitespace Patch

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