Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | set -e |
---|
4 | |
---|
5 | # vars |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | SKEL_LIST="_@_SKEL_LIST_@_" |
---|
10 | DIVERSION_TEST_FILE="/etc/skel/.profile" |
---|
11 | |
---|
12 | |
---|
13 | # Only for Alpha testers |
---|
14 | DIVERSION_ORIG_FILE="$DIVERSION_TEST_FILE.orig" |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | case "$1" in |
---|
19 | configure) |
---|
20 | #chmod 700 /root |
---|
21 | |
---|
22 | |
---|
23 | if dpkg --compare-versions "$2" lt 13.06.17; then |
---|
24 | echo "Fixing adm group..." |
---|
25 | groupmod -g 4 adm || true |
---|
26 | fi |
---|
27 | |
---|
28 | # system groups |
---|
29 | update-base-groups || true |
---|
30 | grep -q "$DIVERSION_TEST_FILE" /var/lib/dpkg/diversions && echo "[INFO] .. diversion found! ...remove it!" && dpkg-divert --remove "$DIVERSION_TEST_FILE" || true |
---|
31 | [ ! -e $DIVERSION_ORIG_FILE ] || mv "$DIVERSION_ORIG_FILE" "$DIVERSION_TEST_FILE" && echo "[INFO] .. You are a Alpha tester" |
---|
32 | |
---|
33 | echo "Not for now" |
---|
34 | #cp -f /usr/share/lliurex-base-files/etc/* /etc/ || true |
---|
35 | |
---|
36 | ;; |
---|
37 | abort-upgrade|abort-remove|abort-deconfigure) |
---|
38 | ;; |
---|
39 | |
---|
40 | *) |
---|
41 | echo "postinst called with unknown argument $1" >&2 |
---|
42 | exit 1 |
---|
43 | ;; |
---|
44 | esac |
---|
45 | |
---|
46 | #DEBHELPER# |
---|
47 | |
---|
48 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.