Hi, I have a Mandriva 2006 installed on one of my servers which has a /etc/lsb-release file... here is the Pandora Agent detection code: [code:1] if [ -f "/etc/lsb-release" ] then OS_VERSION=`cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -f 2 -d "="` LINUX_DISTRO=UBUNTU echo "Detected distribution: $LINUX_DISTRO" echo "Version: $OS_VERSION" # *** put your code and vars for UBUNTU here # CONSOLE_PATH="/var/www/html" # *** between those comments else So when executing this, the Mandriva is not anymore a Mandriva but a Ubuntu... here is the content of my lsb-release: [code:1]# cat /etc/lsb-release LSB_VERSION=core-3.0-ia32:core-3.0-noarch DISTRIB_ID=MandrivaLinux DISTRIB_RELEASE= DISTRIB_CODENAME=Cooker DISTRIB_DESCRIPTION="Mandriva Linux" So I removed the UBUNTU support in my agents for now. bye for now.
a bug in distribution detection...
daggett · 11 ene 2007, 19:18 · 3 mensajes · 62 visitas
- Inicio del debate
After this we will add support for mandriva detection. What directory by default uses Mandriva por HTTP/APache daemon ?
Hi Nil, For Mandriva, I gave my files to Manu who said he had added them in the SVN, and I included the Mandriva support in it, but those files have changed because of some improvemens: I don't get _any_ BADXML anymore since 2 days, so the charset issue is fixed for me (added a trick to make the Pandora Agent v1.2 work in any situations I can encounter). To answer directly to your question, the Mandriva HTTP default directory is /var/www/html I also added some verification script that checks if Pandora is still running and restarts it if not every hour (cron.hourly). bye for now
Entra en tu cuenta para publicar.
