2020-03-12 20:13:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-05-06 12:38:37 +00:00
|
|
|
if [ -z "$1" ] ; then
|
|
|
|
echo "Error - must supply config file"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
. "$1"
|
2020-03-12 20:13:36 +00:00
|
|
|
|
2020-05-05 10:12:14 +00:00
|
|
|
./dev/container-create.sh
|
2020-03-12 20:13:36 +00:00
|
|
|
|
2020-05-05 10:12:14 +00:00
|
|
|
_url="$_local_hostname.$_local_domain"
|
|
|
|
cat config dev/dev-env-setup.sh | ssh root@"$_url" 'cat >/tmp/deploy-script.sh'
|
|
|
|
ssh root@"$_url" '/bin/bash /tmp/deploy-script.sh'
|
|
|
|
ssh root@"$_url" '/bin/bash -c "rm /tmp/deploy-script.sh"'
|