source: npl/fileserver/subversion_conf/root/etc/postinst.d/post.svn @ 105afb5

Last change on this file since 105afb5 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 538 bytes
Line 
1#!/bin/bash
2
3#remove old package
4removepkg svn
5touch /var/log/packages/svn-9-i586-9999
6
7mkdir -p /home/system/svn
8
9if ! [ -e /home/system/svn/default ]; then
10    svnadmin create /home/system/svn/default || exit 1
11    chown -R nobody /home/system/svn/default || exit 1
12fi
13
14
15if ! getent group "SVN read access" &> /dev/null; then
16 smbldap-groupadd -g 540 "SVN read access" || exit 1;
17fi
18
19if ! getent group "SVN write access" &> /dev/null; then
20 smbldap-groupadd -g 541 "SVN write access" || exit 1;
21fi
22
23svcrestart /service/apache2
24
25exit 0
Note: See TracBrowser for help on using the repository browser.