mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
If installing with installp, error out if there is already an
instance of the rpm package installed.
This commit is contained in:
parent
bcd8549a9c
commit
386ba7b062
13
sudo.pp
13
sudo.pp
@ -298,6 +298,19 @@ still allow people to get their work done."
|
|||||||
$mandir/cat*/* 0644 optional
|
$mandir/cat*/* 0644 optional
|
||||||
$mandir/man*/* 0644 optional
|
$mandir/man*/* 0644 optional
|
||||||
|
|
||||||
|
%pre [aix]
|
||||||
|
if rpm -q %{name} >/dev/null 2>&1; then
|
||||||
|
echo "Another version of sudo is currently installed via rpm." 2>&1
|
||||||
|
echo "Please either uninstall the rpm version of sudo by running \"rpm -e sudo\"" 2>&1
|
||||||
|
echo "or upgrade the existing version of sudo using the .rpm packagae instead" 2>&1
|
||||||
|
echo "instead of the .bff package." 2>&1
|
||||||
|
echo "" 2>&1
|
||||||
|
echo "Note that you may need to pass rpm the --oldpackage flag when upgrading" 2>&1
|
||||||
|
echo "the AIX Toolbox version of sudo to the latest sudo rpm from sudo.ws." 2>&1
|
||||||
|
echo "" 2>&1
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
%post [!rpm,deb]
|
%post [!rpm,deb]
|
||||||
# Don't overwrite an existing sudoers file
|
# Don't overwrite an existing sudoers file
|
||||||
%if [solaris]
|
%if [solaris]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user