Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > cf1f32fcb718062875f5e72dc267666b > scriptlet

horde-gollem-1.0.2-3.noarch.rpm

POSTIN

/bin/sh
if [ ! -f /etc/webapps/horde-gollem/conf.php.bak ]; then
	install /dev/null -o root -g http -m660 /etc/webapps/horde-gollem/conf.php.bak
fi

Triggers

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-gollem
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-gollem.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/horde-gollem.conf ]; then 
	/usr/sbin/webapp unregister apache horde-gollem
	{
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 horde-gollem
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-gollem.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/horde-gollem.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-gollem
	{
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
for i in apache.conf backends.php conf.php credentials.php httpd.conf menu.php mime_drivers.php motd.php prefs.php; do
	if [ -f /etc/horde.org/gollem/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-gollem/$i{,.rpmnew}
		mv -f /etc/horde.org/gollem/$i.rpmsave /etc/webapps/horde-gollem/$i
	fi
done

if [ -f /etc/horde.org/apache-gollem.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-gollem/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-gollem/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-gollem.conf.rpmsave /etc/webapps/horde-gollem/apache.conf
	cp -f /etc/horde.org/apache-gollem.conf.rpmsave /etc/webapps/horde-gollem/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-gollem.conf ]; then
	/usr/sbin/webapp register apache horde-gollem
	rm -f /etc/apache/conf.d/99_horde-gollem.conf
	{
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
if [ -L /etc/httpd/httpd.conf/99_horde-gollem.conf ]; then
	/usr/sbin/webapp register httpd horde-gollem
	rm -f /etc/httpd/httpd.conf/99_horde-gollem.conf
	{
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
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-gollem
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-gollem.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/horde-gollem.conf ]; then 
	/usr/sbin/webapp unregister apache horde-gollem
	{
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 horde-gollem
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-gollem.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

horde-gollem < 1.0-2.3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-gollem.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-gollem
	{
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

gollem

/bin/sh
for i in apache.conf backends.php conf.php credentials.php httpd.conf menu.php mime_drivers.php motd.php prefs.php; do
	if [ -f /etc/horde.org/gollem/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-gollem/$i{,.rpmnew}
		mv -f /etc/horde.org/gollem/$i.rpmsave /etc/webapps/horde-gollem/$i
	fi
done

if [ -f /etc/horde.org/apache-gollem.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-gollem/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-gollem/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-gollem.conf.rpmsave /etc/webapps/horde-gollem/apache.conf
	cp -f /etc/horde.org/apache-gollem.conf.rpmsave /etc/webapps/horde-gollem/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-gollem.conf ]; then
	/usr/sbin/webapp register apache horde-gollem
	rm -f /etc/apache/conf.d/99_horde-gollem.conf
	{
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
if [ -L /etc/httpd/httpd.conf/99_horde-gollem.conf ]; then
	/usr/sbin/webapp register httpd horde-gollem
	rm -f /etc/httpd/httpd.conf/99_horde-gollem.conf
	{
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