Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 86fb34a17d24e060344444970d74906a > scriptlet

lms-1.6.8-4.amd64.rpm

Triggers

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

apache-base

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

apache < 2.2.0

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

lms <= 1.0.4

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

lms <= 1.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

lms < 1.6.6-1.4

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

apache1-base

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

apache1 < 1.3.37-3

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

lms <= 1.0.4

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

lms <= 1.2.0

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

lms < 1.6.6-1.4

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

apache < 2.2.0

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

apache-base

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

lms <= 1.0.4

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

lms <= 1.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

lms < 1.6.6-1.4

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

apache1 < 1.3.37-3

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

apache1-base

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

apache-base

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

lms <= 1.0.4

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

lms <= 1.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

lms < 1.6.6-1.4

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

apache1-base

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

apache < 2.2.0

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

lms <= 1.0.4

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

lms <= 1.2.0

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

lms < 1.6.6-1.4

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

apache1 < 1.3.37-3

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

apache < 2.2.0

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

apache-base

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

lms <= 1.0.4

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

lms <= 1.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

lms < 1.6.6-1.4

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

apache1 < 1.3.37-3

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

apache1-base

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister apache lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd lms
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/lms.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/lms.conf ]; then 
	/usr/sbin/webapp unregister httpd lms
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

lms <= 1.0.4

/bin/sh
echo "WARNING!!!"
echo "_READ_ and upgrade LMS database:"
echo "MySQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.mysql.gz"
echo "PostgreSQL: /usr/share/doc/lms-1.6.8/UPGRADE-1.0-1.5.pgsql.gz"

lms <= 1.2.0

/bin/sh
echo "BEWARE:"
echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
echo "You are advised to upgrade it manually"
echo

lms < 1.6.6-1.4

/bin/sh
# nuke very-old config location (this mostly for Ra)
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e "/^Include.*lms.conf/d" /etc/httpd/httpd.conf
fi

# migrate from httpd (apache2) config dir
if [ -f /etc/httpd/lms.conf.rpmsave ]; then
	cp -f /etc/webapps/lms/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/lms.conf.rpmsave /etc/webapps/lms/httpd.conf
fi

rm -f /etc/httpd/httpd.conf/99_lms.conf
/usr/sbin/webapp register httpd lms
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };