From 366c521127d8b5277e5f575efbfa320f40fccd58 Mon Sep 17 00:00:00 2001 From: "M.Goldshteyn" Date: Thu, 12 Sep 2024 17:08:48 +0300 Subject: [PATCH] start --- migration.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migration.sh b/migration.sh index d3c49ab..8f0e35c 100644 --- a/migration.sh +++ b/migration.sh @@ -27,8 +27,8 @@ fi download_platform(){ # sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "sed -i \"s|\(jdbc:postgresql://localhost:5432/\)[^?]*|\1${DESTINATION_DB_NAME}|g\" $DESTINATION_PLATFORM_PATH/conf/db.conf" - sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "systemctl is-active --quiet platform5.service && systemctl stop platform5 && \ - mv /home/platform5-server /home/platform5-server-${DATE} && \ + sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "systemctl is-active --quiet platform5.service && systemctl stop platform5 " + sshpass -p "$DESTINATION_PASSWORD" ssh $DESTINATION_USER@$DESTINATION_IP -p $DESTINATION_PORT "mv /home/platform5-server /home/platform5-server-${DATE} && \ mkdir -p /home/platform5-server && \ mkdir -p /home/platform5-server/bin/storage/1" PLATFORM_DIRS="conf,lib,opencv,webapp,scripts,SERVER_config.txt"