[Pkg-sql-ledger-commit] r427 - ledger-smb/trunk/debian
pkg-sql-ledger-commit-owner at lists.alioth.debian.org
pkg-sql-ledger-commit-owner at lists.alioth.debian.org
Tue Feb 14 18:30:10 UTC 2012
Author: jame-guest
Date: 2012-02-14 18:30:10 +0000 (Tue, 14 Feb 2012)
New Revision: 427
Modified:
ledger-smb/trunk/debian/ledgersmb.postinst
ledger-smb/trunk/debian/ledgersmb.postrm
Log:
Correct the whitespace indentation in the maintenance scripts.
Modified: ledger-smb/trunk/debian/ledgersmb.postinst
===================================================================
--- ledger-smb/trunk/debian/ledgersmb.postinst 2012-02-14 18:11:36 UTC (rev 426)
+++ ledger-smb/trunk/debian/ledgersmb.postinst 2012-02-14 18:30:10 UTC (rev 427)
@@ -22,30 +22,30 @@
configure)
# Do Apache related processing if it is present.
if [ -d "/etc/apache2" ]; then
- # Only do these if this is the initial install.
- if [ "$2" = "" ]; then
- # Install ledgersmb-httpd.conf if a copy is not already installed.
- if [ -d "/etc/apache2/conf.d" ]; then
- if [ ! -e "/etc/apache2/conf.d/ledgersmb-httpd.conf" ]; then
- cp /usr/share/doc/ledgersmb/examples/ledgersmb-httpd.conf.template /etc/apache2/conf.d/ledgersmb-httpd.conf
- fi
+ # Only do these if this is the initial install.
+ if [ "$2" = "" ]; then
+ # Install ledgersmb-httpd.conf if a copy is not already installed.
+ if [ -d "/etc/apache2/conf.d" ]; then
+ if [ ! -e "/etc/apache2/conf.d/ledgersmb-httpd.conf" ]; then
+ cp /usr/share/doc/ledgersmb/examples/ledgersmb-httpd.conf.template /etc/apache2/conf.d/ledgersmb-httpd.conf
+ fi
+ fi
+ # Enable Apache mod_rewrite
+ if [ -x "`which a2enmod 2>/dev/null`" ]; then
+ a2enmod rewrite
+ fi
+ # Restart apache
+ if [ -x "/etc/init.d/apache2" ]; then
+ invoke-rc.d apache2 restart || true
+ fi
fi
- # Enable Apache mod_rewrite
- if [ -x "`which a2enmod 2>/dev/null`" ]; then
- a2enmod rewrite
- fi
- # Restart apache
- if [ -x "/etc/init.d/apache2" ]; then
- invoke-rc.d apache2 restart || true
- fi
- fi
fi
# Only do these if this is the initial install.
if [ "$2" = "" ]; then
- # Install a default copy of pos.conf.pl using the example template file.
- if [ ! -e "/usr/share/ledgersmb/pos.conf.pl" ]; then
- cp /usr/share/doc/ledgersmb/examples/pos.conf.pl.template /usr/share/ledgersmb/pos.conf.pl
- fi
+ # Install a default copy of pos.conf.pl using the example template file.
+ if [ ! -e "/usr/share/ledgersmb/pos.conf.pl" ]; then
+ cp /usr/share/doc/ledgersmb/examples/pos.conf.pl.template /usr/share/ledgersmb/pos.conf.pl
+ fi
fi
;;
Modified: ledger-smb/trunk/debian/ledgersmb.postrm
===================================================================
--- ledger-smb/trunk/debian/ledgersmb.postrm 2012-02-14 18:11:36 UTC (rev 426)
+++ ledger-smb/trunk/debian/ledgersmb.postrm 2012-02-14 18:30:10 UTC (rev 427)
@@ -22,22 +22,22 @@
# is no longer being used in debian/postinst to set it
drop_statoverride() {
for file in /etc/ledgersmb /etc/ledgersmb/images \
- /etc/ledgersmb/images/demo /etc/ledgersmb/templates \
- /etc/ledgersmb/templates/*;
+ /etc/ledgersmb/images/demo /etc/ledgersmb/templates \
+ /etc/ledgersmb/templates/*;
do
if dpkg-statoverride --list $file >/dev/null; then
- dpkg-statoverride --remove $file
+ dpkg-statoverride --remove $file
fi
done
}
case "$1" in
upgrade)
- # Remove these settings for /etc/ledgersmb/*, as dpkg-statoverride
- # is no longer being used in debian/postinst to set it.
- if dpkg --compare-versions $2 lt 1.3.9-2; then
- drop_statoverride;
- fi
+ # Remove these settings for /etc/ledgersmb/*, as dpkg-statoverride
+ # is no longer being used in debian/postinst to set it.
+ if dpkg --compare-versions $2 lt 1.3.9-2; then
+ drop_statoverride;
+ fi
;;
purge|remove|failed-upgrade|abort-install|abort-upgrade|disappear)
More information about the Pkg-sql-ledger-commit
mailing list