Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (15 sloc) 467 Bytes
#! /bin/sh
SITE='_site'
FTP_SITE='ftp.s1080089.crystone.net'
cd $SITE
echo 'Stepping into' $SITE
rm ./publish.sh
rm -rf bin
echo '===================================================='
echo 'Uploading site:' $FTP_SITE
echo '===================================================='
lftp -d -u $FTP_USER,$FTP_PASSWORD $FTP_SITE<<END_SCRIPT
mirror -n -R . /webspace/httpdocs/logs
quit
echo '===================================================='
echo 'Site published'