Spaces:
Paused
Paused
| # Replace placeholders in config.json with environment variables | |
| sed -i "s|ENV_Alist_DB_TYPE|${Alist_DB_TYPE:-mysql}|g" $HOME/app/data/config.json | |
| sed -i "s|ENV_Alist_DB_HOST|${Alist_DB_HOST:-localhost}|g" $HOME/app/data/config.json | |
| sed -i "s|ENV_Alist_DB_PORT|${Alist_DB_PORT:-3306}|g" $HOME/app/data/config.json | |
| sed -i "s|ENV_Alist_DB_USER|${Alist_DB_USER:-root}|g" $HOME/app/data/config.json | |
| sed -i "s|ENV_Alist_DB_PASSWORD|${Alist_DB_PASSWORD:-password}|g" $HOME/app/data/config.json | |
| sed -i "s|ENV_Alist_DB_NAME|${Alist_DB_NAME:-alist}|g" $HOME/app/data/config.json | |
| # cat $HOME/app/data/config.json | |
| # Start the alist server | |
| cd $HOME/app && ./app server |