#! /bin/sh set -e PACKAGE_NAME="lliurex-ltsp-client" case "$1" in configure) # Divert original python locales ORIGINAL_FILE="/usr/share/ldm/rc.d/X01-localapps" NEW_FILE="/usr/share/ldm/rc.d.diversions/X01-localapps.diverted" LLIUREX_FILE="/usr/share/ldm/rc.d.diversions/X01-localapps.lliurex" dpkg-divert --package $PACKAGE_NAME --rename --quiet --add --divert $NEW_FILE $ORIGINAL_FILE cp -a "$LLIUREX_FILE" "$ORIGINAL_FILE" ORIGINAL_FILE="/usr/share/ldm/rc.d/X99-zlocalapps-cleanup" NEW_FILE="/usr/share/ldm/rc.d.diversions/X99-zlocalapps-cleanup.diverted" LLIUREX_FILE="/usr/share/ldm/rc.d.diversions/X99-zlocalapps-cleanup.lliurex" dpkg-divert --package $PACKAGE_NAME --rename --quiet --add --divert $NEW_FILE $ORIGINAL_FILE cp -a "$LLIUREX_FILE" "$ORIGINAL_FILE" ;; esac # Safeguarding user-home privacy #if [ -f /etc/login.defs ]; then # sed -i '/^UMASK.*/d' /etc/login.defs || echo "Not found, not deleted" # #echo "UMASK 007" >> /etc/login.defs || true #fi # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0