diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-02-02 09:25:06 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-02-02 16:22:44 +0100 |
| commit | e5ec53a697aa3f6a53fdbc33162b7b07dd4b0a01 (patch) | |
| tree | c987da4ecd7394bb004cb80ed3645359082c6fe3 /debian/php5-module.preinst | |
| parent | 6fdfd239a1d8ee165d5e5269808b038401757945 (diff) | |
| download | php-e5ec53a697aa3f6a53fdbc33162b7b07dd4b0a01.tar.gz | |
ucfize php5-module.* and store priority in module .ini file
Diffstat (limited to 'debian/php5-module.preinst')
| -rw-r--r-- | debian/php5-module.preinst | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/debian/php5-module.preinst b/debian/php5-module.preinst index 76b89715a..db9ff0fd3 100644 --- a/debian/php5-module.preinst +++ b/debian/php5-module.preinst @@ -5,13 +5,15 @@ set -e #EXTRA# #DEBHELPER# -[ -f /usr/lib/php5/@package@.modules ] && \ -while read dsoname priority; do - [ -x /usr/bin/dpkg-maintscript-helper ] && \ - dpkg-maintscript-helper mv_conffile \ - /etc/php5/conf.d/${dsoname}.ini \ - /etc/php5/mods-available/${dsoname}.ini \ - 5.4.0~rc6-1 -- "$@"; -done < /usr/lib/php5/@package@.modules +for dsoname in @modules@; do + inifile=${dsoname}.ini + + if [ -x /usr/bin/dpkg-maintscript-helper ]; then + dpkg-maintscript-helper mv_conffile \ + /etc/php5/conf.d/${inifile} \ + /etc/php5/mods-available/${inifile} \ + 5.4.0~rc6-1 -- "$@"; + fi +done exit 0 |
