From 56fbee2c6832a52aa09de77f77421ae4a64d6ff8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 10 Jan 2014 17:11:45 +0100 Subject: [pam-freiburg] cd to proper dir before launching AUTOSTART --- server/modules/pam-freiburg/etc/profile.d/00-autostart.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/modules/pam-freiburg/etc/profile.d/00-autostart.sh b/server/modules/pam-freiburg/etc/profile.d/00-autostart.sh index a6c4744f..18835457 100755 --- a/server/modules/pam-freiburg/etc/profile.d/00-autostart.sh +++ b/server/modules/pam-freiburg/etc/profile.d/00-autostart.sh @@ -30,7 +30,10 @@ if [ -d "$PERSISTENT_HOME_DIR" ]; then done # Check if user has autostart script and run it (so they can create more symlinks etc.) if [ -x "$PERSISTENT_HOME_DIR/AUTOSTART" ]; then - "$PERSISTENT_HOME_DIR/AUTOSTART" + if cd "$TEMP_HOME_DIR"; then + "$PERSISTENT_HOME_DIR/AUTOSTART" + cd - >/dev/null 2>&1 + fi fi fi -- cgit v1.2.3-55-g7522