root/skripty/_publikuj.sh
@
130:94339837c42d
Revision 129:36c2e2bc2eb4, 276 bytes (checked in by František Kučera <franta-hg@…>, 11 years ago) | |
---|---|
|
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | SKRIPT=`dirname $0`/publikuj.sh |
4 | |
5 | if [ -f $SKRIPT ]; then |
6 | $SKRIPT; |
7 | else |
8 | echo "Vytvořte skript s názvem $SKRIPT s obsahem např.:" |
9 | echo ' |
10 | #!/bin/bash |
11 | SERVER="www.example.com"; |
12 | ADRESAR="/var/www/example.com/"; |
13 | rsync -av výstup/ $SERVER:$ADRESAR |
14 | ' |
15 | fi |
16 |
Note: See TracBrowser
for help on using the browser.