From 64781f2b14464312069028d3d04e0c0f2f68c991 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sun, 27 May 2018 09:33:37 +0200 Subject: [PATCH] Workaround to fix Stretch compatibility: prevent YunoHost core to replace the "php5" part of the upstream URL to php7.0... --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index fadf7a3..1109e16 100755 --- a/scripts/install +++ b/scripts/install @@ -26,7 +26,7 @@ final_path=/var/www/$app sudo rm -rf $final_path sudo mkdir -p $final_path echo "Downloading phpLDAPadmin $version..." -sudo wget -O ../phpLDAPadmin.tar.gz http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php5/$version/phpldapadmin-$version.tgz/download > /dev/null 2>&1 +sudo wget -O ../phpLDAPadmin.tar.gz http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php%35/$version/phpldapadmin-$version.tgz/download > /dev/null 2>&1 echo "Extracting to $final_path..." sudo tar xvzf ../phpLDAPadmin.tar.gz -C .. > /dev/null 2>&1 sudo cp -ar ../phpldapadmin-$version/. $final_path diff --git a/scripts/upgrade b/scripts/upgrade index c0a9ba8..226b7da 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -22,7 +22,7 @@ final_path=/var/www/$app sudo rm -rf $final_path sudo mkdir -p $final_path echo "Downloading phpLDAPadmin $version..." -sudo wget -O ../phpLDAPadmin.tar.gz http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php5/$version/phpldapadmin-$version.tgz/download > /dev/null 2>&1 +sudo wget -O ../phpLDAPadmin.tar.gz http://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php%35/$version/phpldapadmin-$version.tgz/download > /dev/null 2>&1 echo "Extracting to $final_path..." sudo tar xvzf ../phpLDAPadmin.tar.gz -C .. > /dev/null 2>&1 sudo cp -ra ../phpldapadmin-$version/. $final_path