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:
authorthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-28 23:05:54 +0300
committerthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-28 23:05:54 +0300
commit9076b3599f0dea964f41fe8e8e25535cfcaeb5be (patch)
treee62922afad41fe24943e59cc2c9ad76d36004542
parentf3292624eb6fb8954de8e9f233bf277ec88238ae (diff)
lamp.sh: Only create systemd users if systemd is not already present
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r--lamp.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/lamp.sh b/lamp.sh
index 00df8d14..c81c43dc 100644
--- a/lamp.sh
+++ b/lamp.sh
@@ -37,11 +37,13 @@ install()
apache2ctl -V || true
# Create systemd users to keep uids persistent between containers
- addgroup --quiet --system systemd-journal
- adduser --quiet -u 180 --system --group --no-create-home --home /run/systemd \
+ 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 \
+ 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 \