source: llxcfg/trunk/fuentes/debian/llxcfg-runtime.postinst @ 98

Last change on this file since 98 was 96, checked in by hectorgh, 5 years ago

adding proyect files

File size: 1.6 KB
Line 
1#!/bin/sh
2
3set -e
4
5case "$1" in
6  configure)
7    . /usr/share/lliurex/llxcfg-common/llxcfg-common.sh
8    touch "$CPKG_EXCLUDE_LIST"
9    # crea directorios/enlaces
10    /usr/share/lliurex/llxcfg-runtime/llxcfg-setdirs create
11    # set start/stop in S91 S95 and S99
12#    NN=91
13#    for f in "llxcfg-backend-daemon" "llxcfg-init" "llxcfg" ; do
14#      [ -x "/etc/init.d/$f" ] && update-rc.d $f start $NN S . stop $NN 0 6 . > /dev/null
15#      NN=$(($NN + 4))
16#    done
17
18    # desperate need of llxcfg-dev package ...
19   
20    # PANDORA EDIT START
21   
22    #for f in "old-llxcfg-apt 50" "llxcfg-cpkg 100" ; do
23    #   llxcfg-apt-scripts enable ${f% *} ${f#* }
24    #done
25    #for f in "llxcfg-cpkg 100" ; do
26    #   llxcfg-init-scripts enable ${f% *} ${f#* }
27    #done
28
29   # PANDORA EDIT END
30
31    # update (admin) dirs permissions
32    addgroup --quiet --system llxcfg ||true
33    for p in /etc/llxcfg /var/lib/llxcfg /usr/share/llxcfg /backup/llxcfg/archive/vars ; do
34       for d in config vars ; do
35          if [ -d "$p/$d" ] ; then
36             chgrp -L -R llxcfg $p/$d
37             chmod -R g+s+w $p/$d
38          fi
39       done
40    done
41   
42    # manual activation of generic "jumble" cpkg
43    # PANDORA EDIT
44    # llxcfg-cpkg-backend enable jumble 1 >/dev/null 2>/dev/null || true
45   
46#    invoke-rc.d llxcfg-backend-daemon restart || true
47    # remove some garbage from buggy versions of pe
48    if [ -e /etc/op/op.d/pe-.conf ] ; then
49        rm -f /etc/op/op.d/pe-.conf
50        pe --update
51    fi
52  ;;
53
54  abort-upgrade|abort-remove|abort-deconfigure)
55  ;;
56
57  *)
58    echo "postinst called with unknown argument \`$1'" >&2
59    exit 1
60  ;;
61esac
62
63#DEBHELPER#
64
65exit 0
Note: See TracBrowser for help on using the repository browser.