🗃️ Committing everything that changed 🗃️

Dockerfile
rootfs/root/docker/setup/03-files.sh
rootfs/root/docker/setup/04-users.sh
This commit is contained in:
casjay
2024-09-04 12:51:12 -04:00
parent 234306134c
commit 494008532d
3 changed files with 21 additions and 17 deletions

View File

@@ -153,17 +153,6 @@ RUN echo "Custom Settings"; \
RUN echo "Setting up users and scripts "; \
$SHELL_OPTS; \
if ! grep -s -q "${AUR_HOME}" /etc/passwd;then useradd -m -r -s /bin/bash -d "${AUR_HOME}" "${AUR_USER}";fi; \
passwd -d "${AUR_USER}"; \
[ -d "/etc/sudoers.d" ] || mkdir -p "/etc/sudoers.d"; \
echo ''${AUR_USER}' ALL=(ALL) ALL' >"/etc/sudoers.d/${AUR_USER}" && \
echo 'standard-resolver' >"${AUR_HOME}/.gnupg/dirmngr.conf" && \
chown -Rf "${AUR_USER}":"${AUR_USER}" "${AUR_HOME}"; \
if [ -z "$(command -v yay 2>/dev/null)" ];then cd "${AUR_HOME}/build" && \
git clone --depth 1 "https://aur.archlinux.org/yay.git" && cd yay && \
sudo -u "${AUR_USER}" makepkg --noconfirm -si; \
fi; \
sudo -u "${AUR_USER}" yay --afterclean --removemake --save && pacman -Qtdq | xargs -r pacman --noconfirm -Rcns; \
if [ -f "/root/docker/setup/04-users.sh" ];then echo "Running the users script";/root/docker/setup/04-users.sh||{ echo "Failed to execute /root/docker/setup/04-users.sh" >&2 && exit 10; };echo "Done running the users script";fi; \
echo ""