1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpldapadmin_ynh.git synced 2024-09-03 19:56:45 +02:00

add Patch 1.2.3 for Jessie (correct bug php 5.5)

This commit is contained in:
Développeur égaré 2015-05-31 01:23:17 +02:00
parent 061da6862d
commit 24fb5a576f

View file

@ -5,6 +5,8 @@ domain=$1
path=$2 path=$2
admin=$3 admin=$3
versionname=$(lsb_release -a | grep Codename | awk -F' ' '{print $2}')
# Check domain/path availability # Check domain/path availability
sudo yunohost app checkurl $domain$path -a phpldapadmin sudo yunohost app checkurl $domain$path -a phpldapadmin
if [[ ! $? -eq 0 ]]; then if [[ ! $? -eq 0 ]]; then
@ -29,6 +31,10 @@ echo "Extracting to $final_path..."
sudo tar xvzf ../phpLDAPadmin.tar.gz -C .. > /dev/null 2>&1 sudo tar xvzf ../phpLDAPadmin.tar.gz -C .. > /dev/null 2>&1
sudo cp -r ../phpldapadmin-$version/* $final_path sudo cp -r ../phpldapadmin-$version/* $final_path
# Patch 1.2.3 for Jessie (correct bug php 5.5)
[ "$versionname" == "jessie" ] && [ "$version" == "1.2.3" ] && sudo wget http://www.jouvinio.net/wiki/images/f/f0/PhpLdapAdmin-1.2.3_patch.tar.gz
[ "$versionname" == "jessie" ] && [ "$version" == "1.2.3" ] && sudo tar -C $final_path/lib/ -xzvf phpLdapAdmin-1.2.3_patch.tar.gz
# Configuration # Configuration
echo "Configuring application..." echo "Configuring application..."
sudo cp ../conf/config.php $final_path/config/ sudo cp ../conf/config.php $final_path/config/