Forgejo: Wrap the adduser command
This commit is contained in:
parent
b4e481e44d
commit
537481a849
1 changed files with 10 additions and 2 deletions
|
@ -10,7 +10,7 @@ VER="${VER//./-}"
|
|||
UPSTREAM_VER="9.0.0"
|
||||
UPSTREAM_VER_DASH="${UPSTREAM_VER//./-}"
|
||||
UPSTREAM_NAME="forgejo"
|
||||
SERIAL="1benoitjpnet"
|
||||
SERIAL="2benoitjpnet"
|
||||
CNAME="$UPSTREAM_NAME-$UPSTREAM_VER_DASH-$SERIAL-$DIST-$VER"
|
||||
ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL"
|
||||
|
||||
|
@ -30,7 +30,15 @@ incus exec $CNAME -- \
|
|||
https://codeberg.org/forgejo/forgejo/releases/download/v${UPSTREAM_VER}/forgejo-${UPSTREAM_VER}-linux-amd64 \
|
||||
-O /usr/local/bin/forgejo
|
||||
incus exec $CNAME -- chmod +x /usr/local/bin/forgejo
|
||||
incus exec $CNAME -- adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git
|
||||
incus exec $CNAME -- \
|
||||
adduser \
|
||||
--system \
|
||||
--shell /bin/bash \
|
||||
--gecos 'Git Version Control' \
|
||||
--group \
|
||||
--disabled-password \
|
||||
--home /home/git \
|
||||
git
|
||||
incus exec $CNAME -- mkdir /var/lib/forgejo
|
||||
incus exec $CNAME -- chown git:git /var/lib/forgejo
|
||||
incus exec $CNAME -- chmod 750 /var/lib/forgejo
|
||||
|
|
Loading…
Add table
Reference in a new issue