MQTT, INSTALL scripts work⤵

This commit is contained in:
Jokob-sk
2023-10-17 07:38:49 +11:00
parent 1b9d4223c5
commit 9dd456bd2c
5 changed files with 31 additions and 12 deletions

View File

@@ -1,5 +1,9 @@
#!/bin/bash
echo "---------------------------------------------------------"
echo "[INSTALL] Run user-mapping.sh"
echo "---------------------------------------------------------"
if [ -z "${USER}" ]; then
echo "We need USER to be set!"; exit 100
fi
@@ -9,7 +13,7 @@ if [ -z "${HOST_USER_ID}" -a -z "${HOST_USER_GID}" ]; then
echo "Nothing to do here." ; exit 0
fi
# reset user_?id to either new id or if empty old (still one of above
# reset user_id to either new id or if empty old (still one of above
# might not be set)
USER_ID=${HOST_USER_ID:=$USER_ID}
USER_GID=${HOST_USER_GID:=$USER_GID}