Commit 3d5fa1ff authored by Marvin's avatar Marvin Committed by GitHub

updated with fix

parent bac7284f
...@@ -93,8 +93,7 @@ EOF ...@@ -93,8 +93,7 @@ EOF
## ##
# USER ACCOUNTS # USER ACCOUNTS
## ##
for I_ACCOUNT in "$(env | grep '^ACCOUNT_')" while read -r I_ACCOUNT; do
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')
...@@ -105,7 +104,7 @@ EOF ...@@ -105,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 done <<< "$(env | grep '^ACCOUNT_')"
## ##
# 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