feat: only run first boot as root
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user