/usr/share/sadms-2.0.15/pre/_preinstall-rh.sh is in sadms 2.0.15.repack-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #!/bin/bash
# bbou@ac-toulouse.fr
# 2007-05-06
# _preinstall-rh.sh
### P A R A M S
package="$1"
### I N C L U D E
. ./_include.sh
### H E L P E R S
function rpmdeps()
{
rpm -q -p $1 -R | grep -v '^/' | sed 's/(.*)//g' | sed 's/[><].*$//g'
}
### S T A R T
packages=`rpmdeps ${package}`
# I N S T A L L E R
if ! rpm -q yum > /dev/null ; then
echo "install needs the yum rpm"
exit 1
fi
echo "yum is installed"
# I N S T A L L L O O P
echo "+INSTALL"
for p in ${packages}; do
echo "+package ${p}"
if ! rpm -q "${p}" > /dev/null ; then
yum -y install "${p}"
else
echo "package ${p} is installed"
fi
done
# U P D A T E
echo "+UPDATE"
yum -y update ${packages}
echo '+end of redhat preinstall'
|