try to remove bashsisms from postinst script

This commit is contained in:
Antoine Beaupré 2008-10-04 20:45:38 +00:00
parent 69897a033b
commit 277f17fc11
4 changed files with 8 additions and 7 deletions

View File

@ -25,5 +25,3 @@ alternc-slave: executable-is-not-world-readable usr/lib/alternc/spoolsize.php 07
alternc-slave: executable-is-not-world-readable usr/lib/alternc/sqlbackup.sh 0750 != 0755
alternc-slave: executable-is-not-world-readable usr/lib/alternc/update_domains.sh 0750 != 0755
alternc-slave: non-standard-dir-in-var var/backups/
alternc-slave: possible-bashism-in-maintainer-script postinst:11 ' local question='
alternc-slave: possible-bashism-in-maintainer-script postinst:12 ' local var='

View File

@ -8,8 +8,10 @@ set -e
CONFIGFILE="/etc/alternc/local.sh"
update_var() {
local question="$1"
local var="$2"
local question
local var
question="$1"
var="$2"
db_get "$question"
if [ ! -z "$RET" ]; then
grep -Eq "^ *$var=" $CONFIGFILE || echo "$var=" >> $CONFIGFILE

View File

@ -1,7 +1,6 @@
alternc: non-standard-dir-in-var var/alternc/
alternc: non-standard-dir-in-var var/backups/
alternc: file-in-unusual-dir
alternc: possible-bashism-in-maintainer-script
alternc: setuid-binary usr/lib/alternc/mail_add 4750 root/www-data
alternc: setuid-binary usr/lib/alternc/mail_del 4750 root/www-data
alternc: setuid-binary usr/lib/alternc/quota_edit 4750 root/www-data

View File

@ -8,8 +8,10 @@ set -e
CONFIGFILE="/etc/alternc/local.sh"
update_var() {
local question="$1"
local var="$2"
local question
local var
question="$1"
var="$2"
db_get "$question"
if [ ! -z "$RET" ]; then
grep -Eq "^ *$var=" $CONFIGFILE || echo "$var=" >> $CONFIGFILE