Spaces:
Paused
Paused
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -5,7 +5,8 @@ sed -i "s|ENV_Alist_DB_TYPE|${Alist_DB_TYPE:-mysql}|g" $HOME/app/data/config.jso
|
|
| 5 |
sed -i "s|ENV_Alist_DB_HOST|${Alist_DB_HOST:-localhost}|g" $HOME/app/data/config.json
|
| 6 |
sed -i "s|ENV_Alist_DB_PORT|${Alist_DB_PORT:-3306}|g" $HOME/app/data/config.json
|
| 7 |
sed -i "s|ENV_Alist_DB_USER|${Alist_DB_USER:-root}|g" $HOME/app/data/config.json
|
| 8 |
-
sed -i "s|ENV_Alist_DB_PASSWORD|${Alist_DB_PASSWORD:-password}|g" $HOME/app/data/config.json
|
|
|
|
| 9 |
sed -i "s|ENV_Alist_DB_NAME|${Alist_DB_NAME:-alist}|g" $HOME/app/data/config.json
|
| 10 |
|
| 11 |
cat $HOME/app/data/config.json
|
|
|
|
| 5 |
sed -i "s|ENV_Alist_DB_HOST|${Alist_DB_HOST:-localhost}|g" $HOME/app/data/config.json
|
| 6 |
sed -i "s|ENV_Alist_DB_PORT|${Alist_DB_PORT:-3306}|g" $HOME/app/data/config.json
|
| 7 |
sed -i "s|ENV_Alist_DB_USER|${Alist_DB_USER:-root}|g" $HOME/app/data/config.json
|
| 8 |
+
# sed -i "s|ENV_Alist_DB_PASSWORD|${Alist_DB_PASSWORD:-password}|g" $HOME/app/data/config.json
|
| 9 |
+
sed -i "s|ENV_Alist_DB_PASSWORD|$(printf '%s' "${Alist_DB_PASSWORD:-password}" | sed 's/[&/\]/\\&/g')|g" "$HOME/app/data/config.json"
|
| 10 |
sed -i "s|ENV_Alist_DB_NAME|${Alist_DB_NAME:-alist}|g" $HOME/app/data/config.json
|
| 11 |
|
| 12 |
cat $HOME/app/data/config.json
|