Browse Source

Moving files around

master
Miguel Gagliardo 5 months ago
parent
commit
3bdcc4473a
7 changed files with 2 additions and 2 deletions
  1. 0
    0
      config/element/element-config.json
  2. 0
    0
      config/turnserver.conf
  3. 0
    0
      coturn.service
  4. 0
    0
      docker-compose.yaml
  5. 0
    0
      homeserver.yaml.db
  6. 2
    2
      install.sh
  7. 0
    0
      matrix.service

matrix/config/element/element-config.json → config/element/element-config.json View File


matrix/config/turnserver.conf → config/turnserver.conf View File


matrix/coturn.service → coturn.service View File


matrix/docker-compose.yaml → docker-compose.yaml View File


matrix/homeserver.yaml.db → homeserver.yaml.db View File


matrix/install.sh → install.sh View File

11
 BASE_DIR=/opt/matrix
11
 BASE_DIR=/opt/matrix
12
 
12
 
13
 # Create directory and copy configs + docker-compose YAML
13
 # Create directory and copy configs + docker-compose YAML
14
-mkdir -p ${BASE_DIR}
14
+mkdir -p ${BASE_DIR}/db
15
 cp -R . ${BASE_DIR}
15
 cp -R . ${BASE_DIR}
16
 cd ${BASE_DIR}
16
 cd ${BASE_DIR}
17
 
17
 
116
 PG_PASS=$(pwgen -s 28 -1)
116
 PG_PASS=$(pwgen -s 28 -1)
117
 
117
 
118
 # Replace Password in homeserver.yaml
118
 # Replace Password in homeserver.yaml
119
-sed -i "s|PG_PASS|\"${PG_PASS}\"|g" "${BASE_DIR}/config/synapse/homeserver.yaml"
119
+sed -i "s|PG_PASS|${PG_PASS}|g" "${BASE_DIR}/config/synapse/homeserver.yaml"
120
 
120
 
121
 # Replace PG_PASS Password and DOMAIN in docker compose YAML
121
 # Replace PG_PASS Password and DOMAIN in docker compose YAML
122
 sed -i "s|DOMAIN|${DOMAIN}|g" "${BASE_DIR}/docker-compose.yaml"
122
 sed -i "s|DOMAIN|${DOMAIN}|g" "${BASE_DIR}/docker-compose.yaml"

matrix/matrix.service → matrix.service View File


Loading…
Cancel
Save