summaryrefslogtreecommitdiff
path: root/source/xap
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap')
-rw-r--r--source/xap/xlockmore/doinst.sh4
-rw-r--r--source/xap/xscreensaver/doinst.sh5
2 files changed, 6 insertions, 3 deletions
diff --git a/source/xap/xlockmore/doinst.sh b/source/xap/xlockmore/doinst.sh
index 3c7968d9..0b372dbc 100644
--- a/source/xap/xlockmore/doinst.sh
+++ b/source/xap/xlockmore/doinst.sh
@@ -11,4 +11,6 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-config etc/pam.d/xlock.new
+if [ -r etc/pam.d/xlock.new ]; then
+ config etc/pam.d/xlock.new
+fi
diff --git a/source/xap/xscreensaver/doinst.sh b/source/xap/xscreensaver/doinst.sh
index f2744d09..8f79143c 100644
--- a/source/xap/xscreensaver/doinst.sh
+++ b/source/xap/xscreensaver/doinst.sh
@@ -11,5 +11,6 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-config etc/pam.d/xscreensaver.new
-
+if [ -r etc/pam.d/xscreensaver.new ]; then
+ config etc/pam.d/xscreensaver.new
+fi