summaryrefslogtreecommitdiffstats
path: root/arch/tde-core/tde-tdebase/trinity-tdebase.install
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tde-core/tde-tdebase/trinity-tdebase.install')
-rw-r--r--arch/tde-core/tde-tdebase/trinity-tdebase.install14
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/tde-core/tde-tdebase/trinity-tdebase.install b/arch/tde-core/tde-tdebase/trinity-tdebase.install
index 8bdaa12ef..b2ba604ef 100644
--- a/arch/tde-core/tde-tdebase/trinity-tdebase.install
+++ b/arch/tde-core/tde-tdebase/trinity-tdebase.install
@@ -1,13 +1,9 @@
post_install() {
ldconfig &> /dev/null
- [ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh
- [ -x "${TDEDIR}/bin/mkpamserv" ] && "${TDEDIR}/bin/mkpamserv" trinity || \
- echo "Warning: unable to run mkpamserv trinity, you will need to manually confirure pam"
- echo "Please remember that you can change your kdesu backend from su to sudo"
- echo "by adding following lines to your ~/.tde/share/kdesurc or to the"
- echo "$TDEDIR/share/config/kdesurc:"
- echo "[super-user-command]"
- echo "super-user-command=sudo"
+ [ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
+ $TDEDIR/bin/mkpamserv tde
+ $TDEDIR/bin/mkpamserv tde-screensaver
+ $TDEDIR/bin/mkpamserv tde-checkpass
}
post_upgrade() {
@@ -16,6 +12,6 @@ post_upgrade() {
post_remove() {
ldconfig &> /dev/null
- rm /etc/pam.d/trinity
+ rm /etc/pam.d/{tde,tde-screensaver,tde-checkpass}
}