source: lliurex-base-files/trunk/fuentes/debian/postinst @ 4406

Last change on this file since 4406 was 4406, checked in by hectorgh, 2 years ago

removing old messages

File size: 748 bytes
Line 
1#!/bin/sh
2
3set -e
4
5# vars
6
7
8
9SKEL_LIST="_@_SKEL_LIST_@_"
10DIVERSION_TEST_FILE="/etc/skel/.profile"
11
12
13# Only for Alpha testers
14DIVERSION_ORIG_FILE="$DIVERSION_TEST_FILE.orig"
15
16
17
18case "$1" in
19   configure)
20       
21    # system groups
22    update-base-groups || true
23        grep -q "$DIVERSION_TEST_FILE"  /var/lib/dpkg/diversions && echo "[INFO] .. diversion found! ...remove it!" && dpkg-divert --remove "$DIVERSION_TEST_FILE" || true
24    [ ! -e $DIVERSION_ORIG_FILE ] || mv "$DIVERSION_ORIG_FILE" "$DIVERSION_TEST_FILE"
25   
26    #cp -f /usr/share/lliurex-base-files/etc/* /etc/ || true
27   
28   ;;
29   abort-upgrade|abort-remove|abort-deconfigure)
30   ;;
31
32   *)
33      echo "postinst called with unknown argument $1" >&2
34      exit 1
35   ;;
36esac
37
38#DEBHELPER#
39
40exit 0
Note: See TracBrowser for help on using the repository browser.