Wraps deploy script execution on to prevent partial execution if it is terminated before finished transfering
This commit is contained in:
parent
c3fcd798c3
commit
6149a4a8e1
@ -11,6 +11,7 @@ shift
|
|||||||
|
|
||||||
remote_command=$(
|
remote_command=$(
|
||||||
cat <<CMD
|
cat <<CMD
|
||||||
|
{
|
||||||
deploy_folder=\$(mktemp -d -t kickstart.XXXXX)
|
deploy_folder=\$(mktemp -d -t kickstart.XXXXX)
|
||||||
mkdir -p "\$deploy_folder"
|
mkdir -p "\$deploy_folder"
|
||||||
cd "\$deploy_folder"
|
cd "\$deploy_folder"
|
||||||
@ -19,6 +20,7 @@ cat <<CMD
|
|||||||
$prefix bash $debug install.sh || exit_status=\$?
|
$prefix bash $debug install.sh || exit_status=\$?
|
||||||
rm -rf "\$deploy_folder"
|
rm -rf "\$deploy_folder"
|
||||||
exit \$exit_status
|
exit \$exit_status
|
||||||
|
}
|
||||||
CMD
|
CMD
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user