Code

Updated acl schema
[gosa.git] / contrib / fai / get-debconf.sh
1 #!/bin/bash
2 # Call with:
3 # find /path/to/your/debmirror -name \*.deb | xargs ./get-debconf
4 # Move result to /etc/gosa/fai/server/debconf.d
6 [ -d /tmp/debconf.d ] && mkdir /tmp/debconf.d
7 for i in $@; do
8     dpkg -e $i /tmp/debconf.d/DEBIAN
9     if [ -f /tmp/debconf.d/DEBIAN/templates ]; then
10         pp=$(basename $i)
11         p=${pp%%_*}
12         echo $p has debconf template
13         mv /tmp/debconf.d/DEBIAN/templates /tmp/debconf.d/$p.templates
14     fi
15 done