Ignore:
Timestamp:
09/07/2007 08:14:31 PM (17 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
aaab3da7
Parents:
0c74155e
Message:

Added an 'if exist' type check to the Linux-PAM commands that create the symlinks so that if the commands are run more than once, there is no breakage

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7104 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/linux-pam.xml

    r0c74155e r336d44e3  
    130130sed -i 's| /lib| /usr/lib|' /usr/lib/libpam_misc.la &amp;&amp;
    131131
    132 for LINK in libpam{,c,_misc}.so; do
    133     ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &amp;&amp;
    134     rm -v /lib/${LINK}
    135 done</userinput></screen>
     132if [ -L /lib/libpam.so ]; then
     133   for LINK in libpam{,c,_misc}.so; do
     134       ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &amp;&amp;
     135       rm -v /lib/${LINK}
     136   done
     137fi</userinput></screen>
    136138
    137139    <!-- <para>If you downloaded the documentation, install it using the following
Note: See TracChangeset for help on using the changeset viewer.