summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'z-distfiles/scripts-gw-1.1/SVN-monthly')
-rwxr-xr-xz-distfiles/scripts-gw-1.1/SVN-monthly20
1 files changed, 4 insertions, 16 deletions
diff --git a/z-distfiles/scripts-gw-1.1/SVN-monthly b/z-distfiles/scripts-gw-1.1/SVN-monthly
index 8c9cc86..e98b6e9 100755
--- a/z-distfiles/scripts-gw-1.1/SVN-monthly
+++ b/z-distfiles/scripts-gw-1.1/SVN-monthly
@@ -1,15 +1,5 @@
#!/bin/bash
-if [ "x$1" == "x--help" ]; then
- echo "Usage: SVN-monthly"
- echo " or: SVN-monthly encrypt@for.user"
- echo
- echo "Dumps the subversion repositories to /var/svn/dump"
- echo "and encrypts the dump if a recipient is given. The dump"
- echo "is a complete dump."
- exit 0
-fi
-
BIN_DUMP="/usr/sbin/SVN-dump"
for REPOSITORY in /var/svn/repos/*
@@ -17,12 +7,10 @@ for REPOSITORY in /var/svn/repos/*
$BIN_DUMP $REPOSITORY /var/svn/dump/`basename $REPOSITORY`.dump full
done
-if [ "x$1" != "x" ]; then
- for FILE in /var/svn/dump/*.bz2
- do
- [ -f $FILE ] && /usr/bin/gpg --default-recipient $1 --encrypt-files $FILE && rm $FILE
- done
-fi
+for FILE in /var/svn/dump/*.bz2
+ do
+ [ -f $FILE ] && /usr/bin/gpg --default-recipient post@gunnarwrobel.de --encrypt-files $FILE && rm $FILE
+done
chown -R apache:apache /var/svn/dump
chmod 750 /var/svn/dump