Skip spurious error during id

This commit is contained in:
3wc 2024-05-15 22:48:49 -03:00
parent b39b5ac713
commit bf5ecd7b7c

View File

@ -8,7 +8,7 @@ if [ -n "$PHP_EXTENSIONS" ]; then
done
fi
if ! id -u "user" >/dev/null ; then
if ! id -u "user" >/dev/null 2>&1; then
useradd -u 1000 -m user
mkdir /var/www/html/vendor
chown -R user:user /var/www/html/vendor