install_postfixadmin.sh: fix error setting correct version number.
This commit is contained in:
parent
b3e271e848
commit
ba1fc4ee1b
@ -766,7 +766,7 @@ else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
echononl "\tUnpack 'postfixadmin-${PF_ADMIN_VERSION}.."
|
||||
echononl "\tUnpack 'postfixadmin-${PF_ADMIN_VERSION}'.."
|
||||
gunzip < ${_src_base_dir}/postfixadmin-${PF_ADMIN_VERSION}.tar.gz | tar -C ${_src_base_dir} -xf - 2> $log_file
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
@ -3166,7 +3166,7 @@ if ! $(grep -q -E "^\s*\$version\s*=\s*'${PF_ADMIN_VERSION}'" \
|
||||
"${WEBSITE_BASEDIR}/postfixadmin-${PF_ADMIN_VERSION}/functions.inc.php" 2> /dev/null) ; then
|
||||
echononl "\tSet correct version number in file 'functions.inc.php'.."
|
||||
perl -i.ORIG -n -p -e "s#^\s*\\\$version\s+=.*#\\\$version = '${PF_ADMIN_VERSION}';#" \
|
||||
/var/www/adm-e.oopen.de/postfixadmin-${PF_ADMIN_VERSION}/functions.inc.php > $log_file 2>&1
|
||||
${WEBSITE_BASEDIR}/postfixadmin-${PF_ADMIN_VERSION}/functions.inc.php > $log_file 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user