skripty/_publikuj.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 29 May 2021 20:43:59 +0200
branchv_0
changeset 327 66070d82e12b
parent 129 36c2e2bc2eb4
permissions -rwxr-xr-x
relpipe-in-sql: security note

#!/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