19 lines
341 B
Bash
19 lines
341 B
Bash
8 years ago
|
#!/bin/bash
|
||
|
|
||
7 years ago
|
export FSPATH=/srv/www/yavsc
|
||
8 years ago
|
|
||
|
(
|
||
8 years ago
|
set -e
|
||
7 years ago
|
ssh root@localhost systemctl stop kestrel
|
||
7 years ago
|
ssh root@localhost rm -rf $FSPATH/approot
|
||
8 years ago
|
cd bin/output/
|
||
7 years ago
|
sleep 1
|
||
7 years ago
|
echo "Sync: > $FSPATH"
|
||
7 years ago
|
rsync -ravu wwwroot approot root@localhost:$FSPATH
|
||
7 years ago
|
sleep 1
|
||
7 years ago
|
ssh root@localhost sync
|
||
7 years ago
|
sleep 1
|
||
7 years ago
|
ssh root@localhost systemctl start kestrel
|
||
8 years ago
|
)
|
||
|
|