10 lines
265 B
Bash
10 lines
265 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
. ./config
|
||
|
|
||
|
_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'
|