#!/bin/sh set -e case "$1" in configure) # remove garbage from variable files /usr/share/lliurex/llxcfg-runtime/llxcfg-vars-garbage-collector || true . /usr/share/lliurex/llxcfg-common/llxcfg-common.sh touch "$CPKG_EXCLUDE_LIST" # crea directorios/enlaces /usr/share/lliurex/llxcfg-runtime/llxcfg-setdirs create # set start/stop in S91 S95 and S99 # NN=91 # for f in "llxcfg-backend-daemon" "llxcfg-init" "llxcfg" ; do # [ -x "/etc/init.d/$f" ] && update-rc.d $f start $NN S . stop $NN 0 6 . > /dev/null # NN=$(($NN + 4)) # done # desperate need of llxcfg-dev package ... for f in "old-llxcfg-apt 50" "llxcfg-cpkg 100" ; do llxcfg-apt-scripts enable ${f% *} ${f#* } done for f in "llxcfg-cpkg 100" ; do llxcfg-init-scripts enable ${f% *} ${f#* } done # update (admin) dirs permissions addgroup --quiet --system llxcfg ||true for p in /etc/llxcfg /var/lib/llxcfg /usr/share/llxcfg /backup/llxcfg/archive/vars ; do for d in config vars ; do if [ -d "$p/$d" ] ; then chgrp -L -R llxcfg $p/$d chmod -R g+s+w $p/$d fi done done # manual activation of generic "jumble" cpkg llxcfg-cpkg-backend enable jumble 1 >/dev/null 2>/dev/null || true # invoke-rc.d llxcfg-backend-daemon restart || true # remove some garbage from buggy versions of pe if [ -e /etc/op/op.d/pe-.conf ] ; then rm -f /etc/op/op.d/pe-.conf pe --update fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0