mirror of
https://gitee.com/jack_whh/SFTP-Deploy-Action.git
synced 2026-03-10 07:22:54 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eefd2bdfdd | ||
|
|
20e64abc17 |
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh -l
|
||||
|
||||
#set -e at the top of your script will make the script exit with an error whenever an error occurs (and is not explicitly handled)
|
||||
set -eu
|
||||
@@ -72,9 +72,13 @@ if [ -z != ${11} ]; then
|
||||
ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 "$script"
|
||||
echo "-----"
|
||||
script1="./usr/local/transport-api/restart.sh restart"
|
||||
echo $script
|
||||
echo $script1
|
||||
ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 "$script1"
|
||||
echo "-----"
|
||||
script2="sh /usr/local/transport-api/restart.sh restart"
|
||||
echo $scscript2ript
|
||||
ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 "$script2"
|
||||
echo "-----"
|
||||
|
||||
fi
|
||||
echo 'Deploy Success'
|
||||
|
||||
Reference in New Issue
Block a user