Commit 0636f406 authored by Marvin's avatar Marvin Committed by GitHub

updated entrypoint to fix bug

parent 3d5fa1ff
...@@ -93,7 +93,7 @@ EOF ...@@ -93,7 +93,7 @@ EOF
## ##
# USER ACCOUNTS # USER ACCOUNTS
## ##
while read -r I_ACCOUNT; do echo "$(env | grep '^ACCOUNT_')" | while IFS= read -r I_ACCOUNT ; do
ACCOUNT_NAME=$(echo "$I_ACCOUNT" | cut -d'=' -f1 | sed 's/ACCOUNT_//g' | tr '[:upper:]' '[:lower:]') ACCOUNT_NAME=$(echo "$I_ACCOUNT" | cut -d'=' -f1 | sed 's/ACCOUNT_//g' | tr '[:upper:]' '[:lower:]')
ACCOUNT_PASSWORD=$(echo "$I_ACCOUNT" | sed 's/^[^=]*=//g') ACCOUNT_PASSWORD=$(echo "$I_ACCOUNT" | sed 's/^[^=]*=//g')
...@@ -104,7 +104,7 @@ EOF ...@@ -104,7 +104,7 @@ EOF
smbpasswd -e "$ACCOUNT_NAME" smbpasswd -e "$ACCOUNT_NAME"
unset $(echo "$I_ACCOUNT" | cut -d'=' -f1) unset $(echo "$I_ACCOUNT" | cut -d'=' -f1)
done <<< "$(env | grep '^ACCOUNT_')" done
## ##
# Samba Vonlume Config ENVs # Samba Vonlume Config ENVs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment