forked from extern/shorewall_code
This makes publish work in a group-writable environment (now that we
have multiple people maintaining things). I hope you weren't depending on the output from this script! If you were, feel free to revert it or hack it further. git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2367 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
3b6aff596f
commit
a21550d18f
@ -95,15 +95,21 @@ while [ $# -gt 0 ]; do
|
||||
|
||||
done
|
||||
|
||||
DESTS="
|
||||
shorewall.sourceforge.net:/home/groups/s/sh/shorewall/htdocs
|
||||
mail.shorewall.net:/var/www/html
|
||||
"
|
||||
|
||||
if [ -n "$filestocopy" ]; then
|
||||
for f in $filestocopy; do
|
||||
filestoreport="$filestoreport $(basename $f)"
|
||||
done
|
||||
|
||||
echo "Copying$filestoreport to SourceForge..."
|
||||
scp $filestocopy shorewall.sourceforge.net:/home/groups/s/sh/shorewall/htdocs > /dev/null
|
||||
echo "Copying$filestoreport to Mail..."
|
||||
scp $filestocopy mail.shorewall.net:/var/www/html > /dev/null
|
||||
chmod g+w $filestocopy
|
||||
for d in $DESTS; do
|
||||
echo "$filestoreport -> $d"
|
||||
scp -qp $filestocopy $d
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user