#!/bin/bash

if [ -f /usr/bin/ParseDico ];then
    #EOLE 2.3
    RunCmd=RunCmd
    . ParseDico
    . /etc/eole/containers.conf
    . /usr/share/eole/FonctionsEoleNg
else
    #EOLE 2.4
    RunCmd=CreoleRun
    activer_apache=$(CreoleGet activer_apache)
    activer_piwigo=$(CreoleGet activer_piwigo)
    
fi

if [ "$activer_apache" == "oui" ] && [ "$activer_piwigo" == "oui" ]
then
	$RunCmd "/var/www/html/piwigo/upgrade-envole.sh" web
fi
exit 0
