|
|
|
|
@ -6,7 +6,7 @@ then
@@ -6,7 +6,7 @@ then
|
|
|
|
|
apt update && apt-get install sshpass; |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
set -a # export variables from config.txt test |
|
|
|
|
set -a # export |
|
|
|
|
source config.txt |
|
|
|
|
set +a # stop exporting |
|
|
|
|
|
|
|
|
|
@ -58,9 +58,6 @@ create_and_restore_db
@@ -58,9 +58,6 @@ create_and_restore_db
|
|
|
|
|
change_config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
evt_full_rsync(){ |
|
|
|
|
echo "send $SOURCE_EVT to the destination" |
|
|
|
|
sshpass -p "$DESTINATION_PASSWORD" rsync -e "ssh -p $DESTINATION_PORT" -avz --ignore-existing $SOURCE_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/ $DESTINATION_USER@$DESTINATION_IP:$DESTINATION_PLATFORM_PATH/bin/storage/1/$SOURCE_EVT/ |
|
|
|
|
@ -90,5 +87,5 @@ fonts_rsync(){
@@ -90,5 +87,5 @@ fonts_rsync(){
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
systemctl is-active --quiet platform5.service && systemctl start platform5 |
|
|
|
|
systemctl is-active --quiet platform6.service && systemctl start platform6 |
|
|
|
|
systemctl start platform5 |
|
|
|
|
systemctl start platform6 |