Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2970 → Rev 2971

/scripts/alcasar-rpm.sh
8,6 → 8,7
# configure the RPM repository
 
Lang=`echo $LANG|cut -c 1-2`
SED="/bin/sed -i"
VERSION="7"
ARCH="x86_64"
# The kernel version we compile netflow for
126,8 → 127,15
echo "Download the Linux kernel used by ALCASAR. Please wait ..."
fi
urpmi --auto --quiet $KERNEL
# Remove some of our RPMs in order to avoid their update
# Remove some of our RPMs in order to avoid their automatic update
urpme wkhtmltopdf
# At this time, only skip Kernel update
echo "/^kernel/" > /etc/urpmi/skip.list
if [ `egrep '^exclude=' /etc/dnf/dnf.conf |wc -l` -eq "1" ]; then
$SED "s?^exclude=.*?exclude=kernel\*?g" /etc/dnf/dnf.conf
else
echo "exclude=kernel*" >> /etc/dnf/dnf.conf
fi
# download updated RPM in cache
if [ $Lang == "fr" ]
then
266,10 → 274,15
then
exit 1
fi
# fix some RPM versions
# Avoid some RPM automatic updates
echo "/^kernel/" > /etc/urpmi/skip.list
echo "/^wkhtmltopdf/" >> /etc/urpmi/skip.list
echo "/^clamd/" >> /etc/urpmi/skip.list
echo "/^clamav/" >> /etc/urpmi/skip.list
echo "exclude=kernel* wkhtmltopdf clamd clamav" >> /etc/dnf/dnf.conf
echo "/^freeradius/" >> /etc/urpmi/skip.list
if [ `egrep '^exclude=' /etc/dnf/dnf.conf |wc -l` -eq "1" ]; then
$SED "s?^exclude=.*?exclude=kernel\* wkhtmltopdf clamd clamav freeradius?g" /etc/dnf/dnf.conf
else
echo "exclude=kernel* wkhtmltopdf clamd clamav freeradius" >> /etc/dnf/dnf.conf
fi
exit 0