#!/bin/sh set -e # vars SKEL_LIST="_@_SKEL_LIST_@_" DIVERSION_TEST_FILE="/etc/skel/.profile" # Only for Alpha testers DIVERSION_ORIG_FILE="$DIVERSION_TEST_FILE.orig" case "$1" in configure) #chmod 700 /root if dpkg --compare-versions "$2" lt 13.06.17; then echo "Fixing adm group..." groupmod -g 4 adm || true fi # system groups update-base-groups || true grep -q "$DIVERSION_TEST_FILE" /var/lib/dpkg/diversions && echo "[INFO] .. diversion found! ...remove it!" && dpkg-divert --remove "$DIVERSION_TEST_FILE" || true [ ! -e $DIVERSION_ORIG_FILE ] || mv "$DIVERSION_ORIG_FILE" "$DIVERSION_TEST_FILE" && echo "[INFO] .. You are a Alpha tester" echo "Not for now" #cp -f /usr/share/lliurex-base-files/etc/* /etc/ || true ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument $1" >&2 exit 1 ;; esac #DEBHELPER# exit 0