Code: Select all
rm /usr/bin/wkhtmlto*
rm /usr/local/ncpa
rm /tmp/nagioslogserver/installed.*
yum remove ncpa
yum remove wkhtmltoxCopy the ncpa rpm to /tmp/nagioslogserver/subcomponents/ncpa/ and edit /tmp/nagioslogserver/subcomponents/install. Comment out line 41 and change line 46:
Code: Select all
40 # Download a new package
41 #wget "$assets$pkgname"
42
43 if [ "$distro" == "Debian" ] || [ "$distro" == "Ubuntu" ]; then
44 dpkg --force-confnew -i "$pkgname"
45 else
46 yum localinstall -y *.rpm
47 fiCode: Select all
38 #rm -rf wkhtmlto*
39
40 # Download a new package
41 assets="https://assets.nagios.com/downloads/nagiosxi/packages/"
42 #wget "$assets$pkgname"
43
44 if [ "$distro" == "Debian" ] || [ "$distro" == "Ubuntu" ]; then
45 dpkg -i "$pkgname"
46 else
47 yum localinstall -y *.rpm
48 fi