From: Todd C. Miller Date: Wed, 26 Apr 2017 21:49:10 +0000 (-0600) Subject: Better check for /etc/rc.d/rc2.d/S90sudo on AIX X-Git-Tag: SUDO_1_8_20^2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2180eab1f9d9b3a7f1b2291c44ec537488d54715;p=sudo Better check for /etc/rc.d/rc2.d/S90sudo on AIX --- diff --git a/sudo.pp b/sudo.pp index 6ed628011..308ac2ebc 100644 --- a/sudo.pp +++ b/sudo.pp @@ -457,8 +457,8 @@ still allow people to get their work done." %post [rpm] case "%{pp_rpm_distro}" in aix*) - # Create /etc/rc.d/rc2.d/S90sudo link if /etc/rc.d exists - if [ -d /etc/rc.d ]; then + # Create /etc/rc.d/rc2.d/S90sudo link if possible + if [ -d /etc/rc.d/rc2.d ]; then rm -f /etc/rc.d/rc2.d/S90sudo ln -s /etc/rc.d/init.d/sudo /etc/rc.d/rc2.d/S90sudo fi