Use numbers for permissions in case npmuser doesn't exist

This commit is contained in:
Jamie Curnow 2023-03-30 10:20:20 +10:00
parent 56a92e5c0e
commit dad8561ea1
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
2 changed files with 2 additions and 2 deletions

View File

@ -21,5 +21,5 @@ else
groupmod -o -g "$PGID" npmuser || exit 1 groupmod -o -g "$PGID" npmuser || exit 1
# Home for npmuser # Home for npmuser
mkdir -p /tmp/npmuserhome mkdir -p /tmp/npmuserhome
chown -R npmuser:npmuser /tmp/npmuserhome chown -R "$PUID:$PGID" /tmp/npmuserhome
fi fi

View File

@ -29,7 +29,7 @@ process_folder () {
done done
# ensure the files are still owned by the npmuser # ensure the files are still owned by the npmuser
chown -R npmuser:npmuser "$1" chown -R "$PUID:$PGID" "$1"
} }
process_folder /etc/nginx/conf.d process_folder /etc/nginx/conf.d