Commit 1670ced5 authored by EC2 Default User's avatar EC2 Default User

update start.sh

parent 9a135de5
#!/bin/bash
source db.env
# replace all {{REDISPASSWORD}} to $REDIS_PASS
find ./ -type f -exec sed -i "s/{{REDISPASSWORD}}/$REDIS_PASS/g" {} \;
find ./ -type f -not -name "start.sh" -exec sed -i "s/{{REDISPASSWORD}}/$REDIS_PASS/g" {} \;
# replace all {{CHAINURL}} to $CHAIN_URL
find ./ -type f -exec sed -i "s/{{CHAINURL}}/$CHAIN_URL/g" {} \;
find ./ -type f -not -name "start.sh" -exec sed -i "s/{{CHAINURL}}/$CHAIN_URL/g" {} \;
# rplace all {{MYSQLPASS}} to $MYSQL_ROOT_PASSWORD
find ./ -type f -exec sed -i "s/{{MYSQLPASS}}/$MYSQL_ROOT_PASSWORD/g" {} \;
find ./ -type f -not -name "start.sh" -exec sed -i "s/{{MYSQLPASS}}/$MYSQL_ROOT_PASSWORD/g" {} \;
#docker compose -f docker-compose.yml up -d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment