Moving files around

This commit is contained in:
Miguel Gagliardo 2024-04-10 02:28:31 +01:00
parent 5b272cc018
commit 3bdcc4473a
7 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ fi
BASE_DIR=/opt/matrix BASE_DIR=/opt/matrix
# Create directory and copy configs + docker-compose YAML # Create directory and copy configs + docker-compose YAML
mkdir -p ${BASE_DIR} mkdir -p ${BASE_DIR}/db
cp -R . ${BASE_DIR} cp -R . ${BASE_DIR}
cd ${BASE_DIR} cd ${BASE_DIR}
@ -116,7 +116,7 @@ EOF
PG_PASS=$(pwgen -s 28 -1) PG_PASS=$(pwgen -s 28 -1)
# Replace Password in homeserver.yaml # Replace Password in homeserver.yaml
sed -i "s|PG_PASS|\"${PG_PASS}\"|g" "${BASE_DIR}/config/synapse/homeserver.yaml" sed -i "s|PG_PASS|${PG_PASS}|g" "${BASE_DIR}/config/synapse/homeserver.yaml"
# Replace PG_PASS Password and DOMAIN in docker compose YAML # Replace PG_PASS Password and DOMAIN in docker compose YAML
sed -i "s|DOMAIN|${DOMAIN}|g" "${BASE_DIR}/docker-compose.yaml" sed -i "s|DOMAIN|${DOMAIN}|g" "${BASE_DIR}/docker-compose.yaml"