wordpress-dev/webserver-provision.sh

10 lines
304 B
Bash
Raw Normal View History

2020-03-12 19:19:15 +00:00
#!/bin/sh
2020-05-06 15:12:41 +00:00
. /home/ray/Projects/wordpress-dev/load-config.sh
2020-03-12 19:19:15 +00:00
_ssh_url="root@$_remote_host.$_domain"
# ssh "$_remote_host.$_domain" '/bin/bash -s' < ./production/webserver-setup.sh
cat config ./production/webserver-setup.sh | ssh "$_ssh_url" "cat >/tmp/setup.sh"
ssh $_ssh_url '/bin/bash /tmp/setup.sh'