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

Last change on this file since 893 was 893, checked in by kbut, 3 years ago

wip

File size: 814 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" && echo "[INFO] .. You are a Alpha tester"
25   
26    echo "Not for now"
27    #cp -f /usr/share/lliurex-base-files/etc/* /etc/ || true
28   
29   ;;
30   abort-upgrade|abort-remove|abort-deconfigure)
31   ;;
32
33   *)
34      echo "postinst called with unknown argument $1" >&2
35      exit 1
36   ;;
37esac
38
39#DEBHELPER#
40
41exit 0
Note: See TracBrowser for help on using the repository browser.