|
|
@ -44,10 +44,10 @@ echo -e "===> ${PURPLE_PREFIX} you api url is:$API_URL ${COLOR_SUFFIX}"
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
|
|
|
|
# Specify the config file
|
|
|
|
# Specify the config file
|
|
|
|
config_file='../config/config.yaml'
|
|
|
|
config_file=${OPENIM_ROOT}/config/config.yaml
|
|
|
|
|
|
|
|
|
|
|
|
# Load variables from .env file
|
|
|
|
# Load variables from .env file
|
|
|
|
source ../.env
|
|
|
|
source ${OPENIM_ROOT}/.env
|
|
|
|
|
|
|
|
|
|
|
|
# Replace the password and username field for mysql
|
|
|
|
# Replace the password and username field for mysql
|
|
|
|
sed -i "/mysql:/,/database:/ s/password:.*/password: $PASSWORD/" $config_file
|
|
|
|
sed -i "/mysql:/,/database:/ s/password:.*/password: $PASSWORD/" $config_file
|
|
|
|