feat: only run first boot as root

This commit is contained in:
Ruben Momoa
2024-08-28 12:58:03 +02:00
parent 0de77a89c9
commit d6d66a85d5

View File

@@ -4,7 +4,7 @@
set -e
# install extra packages and extensions on first boot
if [[ ! -f /etc/first_boot ]]; then
if [[ $(id -u) -eq 0 && ! -f /etc/first_boot ]]; then
if [[ -n "${EXTRA_APK_PACKAGES// /}" ]]; then
# shellcheck disable=SC2086
apk add --no-cache $EXTRA_APK_PACKAGES