Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lamp.sh')
-rw-r--r--lamp.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/lamp.sh b/lamp.sh
index d535fa9b..c81c43dc 100644
--- a/lamp.sh
+++ b/lamp.sh
@@ -36,6 +36,14 @@ install()
mkdir -p /run/lock
apache2ctl -V || true
+ # Create systemd users to keep uids persistent between containers
+ id -u systemd-resolve || {
+ addgroup --quiet --system systemd-journal
+ adduser --quiet -u 180 --system --group --no-create-home --home /run/systemd \
+ --gecos "systemd Network Management" systemd-network
+ adduser --quiet -u 181 --system --group --no-create-home --home /run/systemd \
+ --gecos "systemd Resolver" systemd-resolve
+ }
install_with_shadow_workaround --no-install-recommends systemd
$APTINSTALL -t $RELEASE php${PHPVER} php${PHPVER}-curl php${PHPVER}-gd php${PHPVER}-fpm php${PHPVER}-cli php${PHPVER}-opcache \
php${PHPVER}-mbstring php${PHPVER}-xml php${PHPVER}-zip php${PHPVER}-fileinfo php${PHPVER}-ldap \