Sed password last to avoid issues with special characters

This commit is contained in:
TheSpad 2023-09-07 09:03:17 +01:00
parent 42b093a678
commit 617327c026
No known key found for this signature in database
GPG key ID: 08F06191F4587860

View file

@ -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