Resolving Bug 222012 to allow the scripts called from yast to recognize the SLES server so the won't modigy the PAM stack.
This commit is contained in:
parent
d2961b73ca
commit
40f5250684
@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Adding CASA pam entries to pam files.
|
# Adding CASA pam entries to pam files only on the desktop.
|
||||||
|
DESKTOP=`grep -i desktop SuSE-release`
|
||||||
|
|
||||||
|
if [ "$DESKTOP" != "" ]
|
||||||
|
then
|
||||||
|
|
||||||
rm -f *.rpmsave
|
rm -f *.rpmsave
|
||||||
|
|
||||||
prefix="/etc/pam.d"
|
prefix="/etc/pam.d"
|
||||||
@ -55,3 +60,6 @@ do
|
|||||||
sed -i "0,/^password/s/^\(password.*\)/\1\n$passwd_entry/" $password_file
|
sed -i "0,/^password/s/^\(password.*\)/\1\n$passwd_entry/" $password_file
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Remove the CASA pam entries from pam files.
|
# Remove the CASA pam entries from pam files.
|
||||||
|
DESKTOP=`grep -i desktop SuSE-release`
|
||||||
|
|
||||||
|
if [ "$DESKTOP" != "" ]
|
||||||
|
then
|
||||||
|
|
||||||
prefix="/etc/pam.d"
|
prefix="/etc/pam.d"
|
||||||
for pam_file in "$prefix/login" "$prefix/sshd" "$prefix/xdm" "$prefix/gdm" "$prefix/kdm" "$prefix/passwd" "$prefix/gnome-passwd"
|
for pam_file in "$prefix/login" "$prefix/sshd" "$prefix/xdm" "$prefix/gdm" "$prefix/kdm" "$prefix/passwd" "$prefix/gnome-passwd"
|
||||||
@ -9,4 +13,4 @@ do
|
|||||||
sed -i '/pam_micasa/d' $pam_file
|
sed -i '/pam_micasa/d' $pam_file
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user