Skip to content

Commit 84d4a67

Browse files
committed
merge ssh commands for deploy-server
1 parent 7a51962 commit 84d4a67

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

deploy-server

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@ echo active is $active
2727
echo target is $target
2828
echo
2929

30-
ssh $remote rm -rf $target
31-
ssh $remote cp -a $active $target
30+
ssh $remote "rm -rf $target && cp -a $active $target"
3231
rsync -rpcv --fsync --chmod=D755,F644 --delete build/libs/ $remote:$target
33-
ssh $remote ln -snf $target $path/deploy
34-
ssh $remote sync $path/deploy
35-
ssh $remote systemctl daemon-reload
36-
ssh $remote systemctl restart attestation
32+
ssh $remote "ln -snf $target $path/deploy && sync $path/deploy && systemctl daemon-reload && systemctl restart attestation"
3733

3834
echo
3935
echo active is now $target

0 commit comments

Comments
 (0)