4 echo "You must be root to run this, please enter passwd"
7 LOCK=/var/lock/gforge-update-user-group-cvs
8 if ! lockfile-create --retry 2 $LOCK ; then
9 echo "$0 locked, please try again later."
12 lockfile-touch $LOCK &
14 trap "kill $LOCKPID ; lockfile-remove $LOCK" exit
17 # Should be safe to comment this soon
18 # Be sure the system user are created before creating homes
20 # [ -x /usr/share/gforge/bin/install-ldap.sh ] && \
21 # /usr/share/gforge/bin/install-ldap.sh update > /dev/null 2>&1
23 [ -d /var/lib/gforge/dumps ] || \
24 mkdir /var/lib/gforge/dumps && \
25 chown gforge:gforge /var/lib/gforge/dumps
27 /usr/share/gforge/bin/user_dump_update.pl
28 /usr/share/gforge/bin/group_dump_update.pl
29 /usr/share/gforge/bin/ssh_dump_update.pl
30 /usr/share/gforge/bin/mailfwd_update.pl
31 #[ -f /usr/share/gforge/bin/cvs_dump.pl ] && su -s /bin/sh gforge -c /usr/share/gforge/bin/cvs_dump.pl || true
32 #[ -f /usr/share/gforge/bin/cvs_update.pl ] && /usr/share/gforge/bin/cvs_update.pl || true
34 #CB#su gforge -c /usr/share/gforge/bin/dump_database.pl -s /bin/sh
35 #CB#su gforge -c /usr/share/gforge/bin/ssh_dump.pl -s /bin/sh
37 # Create user, groups and cvs archives
38 #CB#/usr/share/gforge/bin/new_parse.pl
40 # Fill ssh authorized_keys
41 #CB#/usr/share/gforge/bin/ssh_create.pl