No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
1 deletions
-
apps/samourai-server/docker-compose.yml
-
scripts/update/01-run.sh
|
@ -25,7 +25,7 @@ services: |
|
|
image: louneskmt/dojo-nodejs:1.10.1@sha256:d1460df18df091837718fcd0a6d3850e2f1a4a49da5914a697648c40d5477184 |
|
|
image: louneskmt/dojo-nodejs:1.10.1@sha256:d1460df18df091837718fcd0a6d3850e2f1a4a49da5914a697648c40d5477184 |
|
|
init: true |
|
|
init: true |
|
|
restart: on-failure |
|
|
restart: on-failure |
|
|
command: "/home/node/app/wait-for-it.sh db:3306 --timeout=720 --strict -- /home/node/app/restart.sh" |
|
|
command: "/home/node/app/wait-for-it.sh ${APP_SAMOURAI_SERVER_DB_IP}:3306 --timeout=720 --strict -- /home/node/app/restart.sh" |
|
|
user: "1000:1000" |
|
|
user: "1000:1000" |
|
|
environment: |
|
|
environment: |
|
|
# GLOBAL |
|
|
# GLOBAL |
|
|
|
@ -203,6 +203,14 @@ if [[ -d "${samourai_app_dir}" ]] && [[ -d "${samourai_data_dir}" ]]; then |
|
|
rsync --archive --verbose "${samourai_app_dir}/" "${samourai_data_dir}" |
|
|
rsync --archive --verbose "${samourai_app_dir}/" "${samourai_data_dir}" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Handle updating mysql conf for samourai-server app |
|
|
|
|
|
samourai_app_mysql_conf="${UMBREL_ROOT}/apps/samourai-server/mysql/mysql-dojo.cnf" |
|
|
|
|
|
samourai_data_mysql_conf="${UMBREL_ROOT}/app-data/samourai-server/mysql/mysql-dojo.cnf" |
|
|
|
|
|
if [[ -f "${samourai_app_mysql_conf}" ]] && [[ -f "${samourai_data_mysql_conf}" ]]; then |
|
|
|
|
|
echo "Found samourai-server install, attempting to update DB configuration..." |
|
|
|
|
|
cp "${samourai_app_mysql_conf}" "${samourai_data_mysql_conf}" |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
# Handle hidden service migration for samourai-server app |
|
|
# Handle hidden service migration for samourai-server app |
|
|
samourai_app_dojo_tor_dir="${UMBREL_ROOT}/tor/data/app-samourai-server" |
|
|
samourai_app_dojo_tor_dir="${UMBREL_ROOT}/tor/data/app-samourai-server" |
|
|
samourai_app_new_dojo_tor_dir="${UMBREL_ROOT}/tor/data/app-samourai-server-dojo" |
|
|
samourai_app_new_dojo_tor_dir="${UMBREL_ROOT}/tor/data/app-samourai-server-dojo" |
|
|