feat: remove viewer user

This commit is contained in:
yeti
2025-04-18 02:22:13 +01:00
parent 088db8fc58
commit f928ab5a0f
2 changed files with 3 additions and 7 deletions

View File

@ -15,12 +15,9 @@ buildah run "$ctr" -- bash -c "\
pacman -Sy --noconfirm && pacman -S --noconfirm --needed base-devel neovim git zsh tmux \
nodejs python podman fzf fd ripgrep jdk-openjdk zsh-completions zsh-syntax-highlighting \
lazygit zsh-autosuggestions luarocks python-pynvim npm bash-completion tree-sitter-cli \
pkgconf lua51 && pacman -Scc --noconfirm && \
groupadd secproc && useradd -ms /bin/zsh -G secproc $DEV_USER && \
useradd --system --no-create-home -s /usr/sbin/nologin -G $DEV_USER viewer && \
lua51 && pacman -Scc --noconfirm && useradd -ms /bin/zsh $DEV_USER && \
mkdir -p /tmp/tmux-shared && chown $DEV_USER:$DEV_USER /tmp/tmux-shared && \
chmod 750 /tmp/tmux-shared && \
mkdir -p $SECURE && chmod -R 500 $SECURE && \
chmod 750 /tmp/tmux-shared && mkdir -p $SECURE && chmod -R 500 $SECURE && \
mkdir /app && chmod 700 /app && chown $DEV_USER:$DEV_USER /app
"
# copy start script