Revision 27bcd236
Added by Benoît PECCATTE about 7 years ago
rudder-inventory-endpoint/debian/postrm.ex | ||
---|---|---|
#!/bin/sh
|
||
# postrm script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <postrm> `remove'
|
||
# * <postrm> `purge'
|
||
# * <old-postrm> `upgrade' <new-version>
|
||
# * <new-postrm> `failed-upgrade' <old-version>
|
||
# * <new-postrm> `abort-install'
|
||
# * <new-postrm> `abort-install' <old-version>
|
||
# * <new-postrm> `abort-upgrade' <old-version>
|
||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||
# <overwriter-version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||
;;
|
||
|
||
*)
|
||
echo "postrm called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-inventory-endpoint/debian/preinst.ex | ||
---|---|---|
#!/bin/sh
|
||
# preinst script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <new-preinst> `install'
|
||
# * <new-preinst> `install' <old-version>
|
||
# * <new-preinst> `upgrade' <old-version>
|
||
# * <old-preinst> `abort-upgrade' <new-version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
install|upgrade)
|
||
;;
|
||
|
||
abort-upgrade)
|
||
;;
|
||
|
||
*)
|
||
echo "preinst called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-inventory-endpoint/debian/prerm.ex | ||
---|---|---|
#!/bin/sh
|
||
# prerm script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <prerm> `remove'
|
||
# * <old-prerm> `upgrade' <new-version>
|
||
# * <new-prerm> `failed-upgrade' <old-version>
|
||
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
|
||
# * <deconfigured's-prerm> `deconfigure' `in-favour'
|
||
# <package-being-installed> <version> `removing'
|
||
# <conflicting-package> <version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
remove|upgrade|deconfigure)
|
||
;;
|
||
|
||
failed-upgrade)
|
||
;;
|
||
|
||
*)
|
||
echo "prerm called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-inventory-endpoint/debian/watch.ex | ||
---|---|---|
# Example watch control file for uscan
|
||
# Rename this file to "watch" and then you can run the "uscan" command
|
||
# to check for upstream updates and more.
|
||
# See uscan(1) for format
|
||
|
||
# Compulsory line, this is a version 3 file
|
||
version=3
|
||
|
||
# Uncomment to examine a Webpage
|
||
# <Webpage URL> <string match>
|
||
#http://www.example.com/downloads.php normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to examine a Webserver directory
|
||
#http://www.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncommment to examine a FTP server
|
||
#ftp://ftp.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz debian uupdate
|
||
|
||
# Uncomment to find new files on sourceforge, for devscripts >= 2.9
|
||
# http://sf.net/normation-openldap-framework/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to find new files on GooglePages
|
||
# http://example.googlepages.com/foo.html normation-openldap-framework-(.*)\.tar\.gz
|
rudder-inventory-ldap/debian/postrm.ex | ||
---|---|---|
#!/bin/sh
|
||
# postrm script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <postrm> `remove'
|
||
# * <postrm> `purge'
|
||
# * <old-postrm> `upgrade' <new-version>
|
||
# * <new-postrm> `failed-upgrade' <old-version>
|
||
# * <new-postrm> `abort-install'
|
||
# * <new-postrm> `abort-install' <old-version>
|
||
# * <new-postrm> `abort-upgrade' <old-version>
|
||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||
# <overwriter-version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||
;;
|
||
|
||
*)
|
||
echo "postrm called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-inventory-ldap/debian/watch.ex | ||
---|---|---|
# Example watch control file for uscan
|
||
# Rename this file to "watch" and then you can run the "uscan" command
|
||
# to check for upstream updates and more.
|
||
# See uscan(1) for format
|
||
|
||
# Compulsory line, this is a version 3 file
|
||
version=3
|
||
|
||
# Uncomment to examine a Webpage
|
||
# <Webpage URL> <string match>
|
||
#http://www.example.com/downloads.php normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to examine a Webserver directory
|
||
#http://www.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncommment to examine a FTP server
|
||
#ftp://ftp.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz debian uupdate
|
||
|
||
# Uncomment to find new files on sourceforge, for devscripts >= 2.9
|
||
# http://sf.net/normation-openldap-framework/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to find new files on GooglePages
|
||
# http://example.googlepages.com/foo.html normation-openldap-framework-(.*)\.tar\.gz
|
rudder-server-root/debian/postrm.ex | ||
---|---|---|
#!/bin/sh
|
||
# postrm script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <postrm> `remove'
|
||
# * <postrm> `purge'
|
||
# * <old-postrm> `upgrade' <new-version>
|
||
# * <new-postrm> `failed-upgrade' <old-version>
|
||
# * <new-postrm> `abort-install'
|
||
# * <new-postrm> `abort-install' <old-version>
|
||
# * <new-postrm> `abort-upgrade' <old-version>
|
||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||
# <overwriter-version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||
;;
|
||
|
||
*)
|
||
echo "postrm called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-server-root/debian/preinst.ex | ||
---|---|---|
#!/bin/sh
|
||
# preinst script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <new-preinst> `install'
|
||
# * <new-preinst> `install' <old-version>
|
||
# * <new-preinst> `upgrade' <old-version>
|
||
# * <old-preinst> `abort-upgrade' <new-version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
install|upgrade)
|
||
;;
|
||
|
||
abort-upgrade)
|
||
;;
|
||
|
||
*)
|
||
echo "preinst called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-server-root/debian/prerm.ex | ||
---|---|---|
#!/bin/sh
|
||
# prerm script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <prerm> `remove'
|
||
# * <old-prerm> `upgrade' <new-version>
|
||
# * <new-prerm> `failed-upgrade' <old-version>
|
||
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
|
||
# * <deconfigured's-prerm> `deconfigure' `in-favour'
|
||
# <package-being-installed> <version> `removing'
|
||
# <conflicting-package> <version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
remove|upgrade|deconfigure)
|
||
;;
|
||
|
||
failed-upgrade)
|
||
;;
|
||
|
||
*)
|
||
echo "prerm called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-server-root/debian/watch.ex | ||
---|---|---|
# Example watch control file for uscan
|
||
# Rename this file to "watch" and then you can run the "uscan" command
|
||
# to check for upstream updates and more.
|
||
# See uscan(1) for format
|
||
|
||
# Compulsory line, this is a version 3 file
|
||
version=3
|
||
|
||
# Uncomment to examine a Webpage
|
||
# <Webpage URL> <string match>
|
||
#http://www.example.com/downloads.php normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to examine a Webserver directory
|
||
#http://www.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncommment to examine a FTP server
|
||
#ftp://ftp.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz debian uupdate
|
||
|
||
# Uncomment to find new files on sourceforge, for devscripts >= 2.9
|
||
# http://sf.net/normation-openldap-framework/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to find new files on GooglePages
|
||
# http://example.googlepages.com/foo.html normation-openldap-framework-(.*)\.tar\.gz
|
rudder-techniques/debian/postrm.ex | ||
---|---|---|
#!/bin/sh
|
||
# postrm script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <postrm> `remove'
|
||
# * <postrm> `purge'
|
||
# * <old-postrm> `upgrade' <new-version>
|
||
# * <new-postrm> `failed-upgrade' <old-version>
|
||
# * <new-postrm> `abort-install'
|
||
# * <new-postrm> `abort-install' <old-version>
|
||
# * <new-postrm> `abort-upgrade' <old-version>
|
||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||
# <overwriter-version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||
;;
|
||
|
||
*)
|
||
echo "postrm called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-techniques/debian/preinst.ex | ||
---|---|---|
#!/bin/sh
|
||
# preinst script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <new-preinst> `install'
|
||
# * <new-preinst> `install' <old-version>
|
||
# * <new-preinst> `upgrade' <old-version>
|
||
# * <old-preinst> `abort-upgrade' <new-version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
install|upgrade)
|
||
;;
|
||
|
||
abort-upgrade)
|
||
;;
|
||
|
||
*)
|
||
echo "preinst called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-techniques/debian/prerm.ex | ||
---|---|---|
#!/bin/sh
|
||
# prerm script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <prerm> `remove'
|
||
# * <old-prerm> `upgrade' <new-version>
|
||
# * <new-prerm> `failed-upgrade' <old-version>
|
||
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
|
||
# * <deconfigured's-prerm> `deconfigure' `in-favour'
|
||
# <package-being-installed> <version> `removing'
|
||
# <conflicting-package> <version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
remove|upgrade|deconfigure)
|
||
;;
|
||
|
||
failed-upgrade)
|
||
;;
|
||
|
||
*)
|
||
echo "prerm called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-techniques/debian/watch.ex | ||
---|---|---|
# Example watch control file for uscan
|
||
# Rename this file to "watch" and then you can run the "uscan" command
|
||
# to check for upstream updates and more.
|
||
# See uscan(1) for format
|
||
|
||
# Compulsory line, this is a version 3 file
|
||
version=3
|
||
|
||
# Uncomment to examine a Webpage
|
||
# <Webpage URL> <string match>
|
||
#http://www.example.com/downloads.php normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to examine a Webserver directory
|
||
#http://www.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncommment to examine a FTP server
|
||
#ftp://ftp.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz debian uupdate
|
||
|
||
# Uncomment to find new files on sourceforge, for devscripts >= 2.9
|
||
# http://sf.net/normation-openldap-framework/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to find new files on GooglePages
|
||
# http://example.googlepages.com/foo.html normation-openldap-framework-(.*)\.tar\.gz
|
rudder-webapp/SPECS/rudder-webapp.spec | ||
---|---|---|
#=================================================
|
||
# Pre Installation
|
||
#=================================================
|
||
service rudder-jetty stop
|
||
|
||
%post -n rudder-webapp
|
||
#=================================================
|
||
... | ... | |
ln -sf %{rudderdir}/share/webapps/rudder.xml %{rudderdir}/jetty7/contexts/rudder.xml
|
||
fi
|
||
|
||
# Warn the user that Jetty needs restarting. This can't be done automatically due to a bug in Jetty's init script.
|
||
# See http://www.rudder-project.org/redmine/issues/2807
|
||
echo "********************************************************************************"
|
||
echo "rudder-webapp has been upgraded, but for the upgrade to take effect, please"
|
||
echo "restart the jetty application server as follows:"
|
||
echo "# service rudder-jetty restart"
|
||
echo "********************************************************************************"
|
||
service rudder-jetty start
|
||
|
||
%postun -n rudder-webapp
|
||
#=================================================
|
rudder-webapp/debian/postinst | ||
---|---|---|
|
||
# Restart the webapp
|
||
echo -n "INFO: Restarting Rudder webapp and inventory-endpoint..."
|
||
if [ /etc/init.d/rudder-jetty check >/dev/null 2>&1 ];then
|
||
/etc/init.d/rudder-jetty start >/dev/null 2>&1
|
||
else
|
||
/etc/init.d/rudder-jetty restart >/dev/null 2>&1 || echo -n "WARNING: Jetty failed to start, maybe there is not enough RAM or swap on the machine. Skipping... "
|
||
fi
|
||
service rudder-jetty start >/dev/null 2>&1
|
||
echo " Done"
|
||
|
||
;;
|
rudder-webapp/debian/preinst | ||
---|---|---|
echo "INFO: take care of this automatically. "
|
||
echo "INFO: "
|
||
echo "********************************************************************************"
|
||
#if the stops fails, it's probably because it was not started
|
||
service rudder-jetty stop || true
|
||
|
||
;;
|
||
|
rudder-webapp/debian/prerm.ex | ||
---|---|---|
#!/bin/sh
|
||
# prerm script for normation-openldap-framework
|
||
#
|
||
# see: dh_installdeb(1)
|
||
|
||
set -e
|
||
|
||
# summary of how this script can be called:
|
||
# * <prerm> `remove'
|
||
# * <old-prerm> `upgrade' <new-version>
|
||
# * <new-prerm> `failed-upgrade' <old-version>
|
||
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
|
||
# * <deconfigured's-prerm> `deconfigure' `in-favour'
|
||
# <package-being-installed> <version> `removing'
|
||
# <conflicting-package> <version>
|
||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||
# the debian-policy package
|
||
|
||
|
||
case "$1" in
|
||
remove|upgrade|deconfigure)
|
||
;;
|
||
|
||
failed-upgrade)
|
||
;;
|
||
|
||
*)
|
||
echo "prerm called with unknown argument \`$1'" >&2
|
||
exit 1
|
||
;;
|
||
esac
|
||
|
||
# dh_installdeb will replace this with shell code automatically
|
||
# generated by other debhelper scripts.
|
||
|
||
#DEBHELPER#
|
||
|
||
exit 0
|
rudder-webapp/debian/watch.ex | ||
---|---|---|
# Example watch control file for uscan
|
||
# Rename this file to "watch" and then you can run the "uscan" command
|
||
# to check for upstream updates and more.
|
||
# See uscan(1) for format
|
||
|
||
# Compulsory line, this is a version 3 file
|
||
version=3
|
||
|
||
# Uncomment to examine a Webpage
|
||
# <Webpage URL> <string match>
|
||
#http://www.example.com/downloads.php normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to examine a Webserver directory
|
||
#http://www.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncommment to examine a FTP server
|
||
#ftp://ftp.example.com/pub/normation-openldap-framework-(.*)\.tar\.gz debian uupdate
|
||
|
||
# Uncomment to find new files on sourceforge, for devscripts >= 2.9
|
||
# http://sf.net/normation-openldap-framework/normation-openldap-framework-(.*)\.tar\.gz
|
||
|
||
# Uncomment to find new files on GooglePages
|
||
# http://example.googlepages.com/foo.html normation-openldap-framework-(.*)\.tar\.gz
|
Also available in: Unified diff
Fixes #9820: Stop jetty before upgrading the webapp