#!/bin/sh set -e # vars WRAPPER_LIST="/usr/bin/lsb_release" SKEL_LIST="_@_SKEL_LIST_@_" case "$1" in configure) chmod 700 /root lliurex-dmrc create lliurex-profile update # system groups update-base-groups || true # script for f in ${WRAPPER_LIST} ${SKEL_LIST} ; do if [ -e "$f" ] ; then dpkg-divert --package lliurex-base-files --rename --quiet --add --divert ${f}.real ${f} || echo "Unable to divert file \"$f\"" >&2 fi done for f in ${WRAPPER_LIST} ; do ln -fs ${f}.wrapper ${f} done # skel files for f in $SKEL_LIST ; do F="/usr/share/lliurex-base-files/jumble/${f}" if [ -e "${F}" ] ; then mkdir -p $(dirname "$f") cp -a "$F" "$f" fi done ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument $1" >&2 exit 1 ;; esac #DEBHELPER# exit 0