From 911770a8c8b4adc2078567d1a56d8bb419663e36 Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Fri, 13 Sep 2024 10:01:32 +0300 Subject: [PATCH] db pass --- migration.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/migration.sh b/migration.sh index 6ba17c9..ce1cd94 100644 --- a/migration.sh +++ b/migration.sh @@ -83,9 +83,8 @@ change_config(){ sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "sed -i \"s|\\(jdbc:postgresql://\\)[^:/]*|\\1${INTERNAL_DATABASE_IP}|g\" $DESTINATION_PLATFORM_PATH/conf/db.conf" #change database name sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "sed -i \"s|\\(jdbc:postgresql://[^:/]*:[0-9]*/\\)[^?]*|\\1${DESTINATION_DB_NAME}|g\" $DESTINATION_PLATFORM_PATH/conf/db.conf" - + #change database password sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "sed -i '0,/password = \".*\"/s//password = \"${DESTINATION_POSTGRES_PASSWORD}\"/' $DESTINATION_PLATFORM_PATH/conf/db.conf" - } evt_full_rsync(){