skripty/_publikuj.sh
author František Kučera <franta-hg@frantovo.cz>
Thu, 11 Sep 2014 20:30:46 +0200
changeset 135 ad2c76125200
parent 129 36c2e2bc2eb4
permissions -rwxr-xr-x
hgignore: glob/regex

#!/bin/bash

SKRIPT=`dirname $0`/publikuj.sh

if [ -f $SKRIPT ]; then
    $SKRIPT;
else
    echo "Vytvořte skript s názvem $SKRIPT s obsahem např.:"
    echo '
#!/bin/bash
SERVER="www.example.com";
ADRESAR="/var/www/example.com/";
rsync -av výstup/ $SERVER:$ADRESAR
'
fi