diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-28 23:05:54 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-28 23:05:54 +0300 |
commit | 9076b3599f0dea964f41fe8e8e25535cfcaeb5be (patch) | |
tree | e62922afad41fe24943e59cc2c9ad76d36004542 | |
parent | f3292624eb6fb8954de8e9f233bf277ec88238ae (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.sh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 \ |