using systemctl
This commit is contained in:
parent
5b298c4a6f
commit
961a60d2fd
2 changed files with 8 additions and 6 deletions
|
|
@ -1,18 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
FSPATH=/srv/www/yavscpre
|
export FSPATH=/srv/www/yavscpre
|
||||||
|
|
||||||
ssh root@localhost rm -rf $FSPATH/approot
|
ssh root@localhost rm -rf $FSPATH/approot
|
||||||
|
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
ssh root@localhost service kestrel stop
|
ssh root@localhost systemctl stop kestrel-pre
|
||||||
cd bin/output/
|
cd bin/output/
|
||||||
|
echo "sync to $FSPATH"
|
||||||
rsync -ravu wwwroot approot root@localhost:$FSPATH
|
rsync -ravu wwwroot approot root@localhost:$FSPATH
|
||||||
sleep 1
|
sleep 1
|
||||||
ssh root@localhost sync
|
ssh root@localhost sync
|
||||||
sleep 1
|
sleep 1
|
||||||
ssh root@localhost service kestrel start
|
ssh root@localhost systemctl start kestrel-pre
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "Now, go and try <https://yavscpre.pschneider.fr>"
|
echo "Now, go and try <https://yavscpre.pschneider.fr>"
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
FSPATH=/srv/www/yavsc
|
export FSPATH=/srv/www/yavsc
|
||||||
|
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
ssh root@localhost service kestrel stop
|
ssh root@localhost systemctl stop kestrel
|
||||||
ssh root@localhost rm -rf $FSPATH/approot
|
ssh root@localhost rm -rf $FSPATH/approot
|
||||||
cd bin/output/
|
cd bin/output/
|
||||||
sleep 1
|
sleep 1
|
||||||
|
echo "Sync: > $FSPATH"
|
||||||
rsync -ravu wwwroot approot root@localhost:$FSPATH
|
rsync -ravu wwwroot approot root@localhost:$FSPATH
|
||||||
sleep 1
|
sleep 1
|
||||||
ssh root@localhost sync
|
ssh root@localhost sync
|
||||||
sleep 1
|
sleep 1
|
||||||
ssh root@localhost service kestrel start
|
ssh root@localhost systemctl start kestrel
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue