author | František Kučera <franta-hg@frantovo.cz> |
Tue, 13 Aug 2013 12:39:12 +0200 | |
changeset 131 | d47607999a8c |
parent 129 | 36c2e2bc2eb4 |
permissions | -rwxr-xr-x |
franta-hg@129 | 1 |
#!/bin/bash |
franta-hg@129 | 2 |
|
franta-hg@129 | 3 |
SKRIPT=`dirname $0`/publikuj.sh |
franta-hg@129 | 4 |
|
franta-hg@129 | 5 |
if [ -f $SKRIPT ]; then |
franta-hg@129 | 6 |
$SKRIPT; |
franta-hg@129 | 7 |
else |
franta-hg@129 | 8 |
echo "Vytvořte skript s názvem $SKRIPT s obsahem např.:" |
franta-hg@129 | 9 |
echo ' |
franta-hg@129 | 10 |
#!/bin/bash |
franta-hg@129 | 11 |
SERVER="www.example.com"; |
franta-hg@129 | 12 |
ADRESAR="/var/www/example.com/"; |
franta-hg@129 | 13 |
rsync -av výstup/ $SERVER:$ADRESAR |
franta-hg@129 | 14 |
' |
franta-hg@129 | 15 |
fi |
franta-hg@129 | 16 |