Commit bd43243d authored by Reto Da Forno's avatar Reto Da Forno
Browse files

bug in server update script fixed (follow symlinks)

parent 3b58a453
......@@ -23,12 +23,12 @@ else
fi
fi
# webserver files
RES=$(rsync -a -z -c -i --dry-run --exclude=".git" -e "ssh -q" webserver/ ${USER}@${HOST}:webserver/ | grep '^<fc' | cut -d' ' -f2)
RES=$(rsync -a -z -c -i -K --dry-run --exclude=".git" -e "ssh -q" webserver/ ${USER}@${HOST}:webserver/ | grep '^<fc' | cut -d' ' -f2)
if [ -z "$RES" ]; then
echo "Webserver files are up to date."
else
printf "Updating webserver files..."
rsync -a -q -z -c --exclude=".git" -e "ssh -q" webserver ${USER}@${HOST}:
rsync -a -q -z -c -K --exclude=".git" -e "ssh -q" webserver ${USER}@${HOST}:
if [ $? -ne 0 ]; then
printf "failed to copy repository files!\n"
continue
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment