From ba1fc4ee1ba5629c27357531e126e4b1a86f3eac Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 15 Aug 2020 19:19:11 +0200 Subject: [PATCH] install_postfixadmin.sh: fix error setting correct version number. --- install_postfixadmin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_postfixadmin.sh b/install_postfixadmin.sh index 61b108d..c4b0001 100755 --- a/install_postfixadmin.sh +++ b/install_postfixadmin.sh @@ -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