mirror of
https://github.com/linuxserver/docker-unifi-network-application.git
synced 2024-11-09 23:24:08 -08:00
Sed password last to avoid issues with special characters
This commit is contained in:
parent
42b093a678
commit
617327c026
|
@ -25,10 +25,10 @@ if [[ ! -e /config/data/system.properties ]]; then
|
|||
exit 1
|
||||
else
|
||||
sed -i "s/~MONGO_USER~/${MONGO_USER}/" /defaults/system.properties
|
||||
sed -i "s/~MONGO_PASS~/${MONGO_PASS}/" /defaults/system.properties
|
||||
sed -i "s/~MONGO_HOST~/${MONGO_HOST}/" /defaults/system.properties
|
||||
sed -i "s/~MONGO_PORT~/${MONGO_PORT}/" /defaults/system.properties
|
||||
sed -i "s/~MONGO_DBNAME~/${MONGO_DBNAME}/" /defaults/system.properties
|
||||
sed -i "s/~MONGO_PASS~/${MONGO_PASS}/" /defaults/system.properties
|
||||
cp /defaults/system.properties /config/data
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue