mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
Merge pull request #52 from YunoHost-Apps/testing
This commit is contained in:
commit
74ce9c3834
4 changed files with 33 additions and 27 deletions
|
@ -11,7 +11,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to
|
||||||
[Piwigo](http://piwigo.org) is a photo gallery software for the web, built by an active community of users and developers
|
[Piwigo](http://piwigo.org) is a photo gallery software for the web, built by an active community of users and developers
|
||||||
Extensions make Piwigo easily customizable. Icing on the cake, Piwigo is free and opensource.
|
Extensions make Piwigo easily customizable. Icing on the cake, Piwigo is free and opensource.
|
||||||
|
|
||||||
**Shipped version:** 2.10.1
|
**Shipped version:** 2.10.2
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=http://piwigo.org/download/dlcounter.php?code=2.10.1
|
SOURCE_URL=http://piwigo.org/download/dlcounter.php?code=2.10.2
|
||||||
SOURCE_SUM=4967bc5ebca1eae5b20cdd5849dc2e1628e281c400d73d12d116d4381e4d432b
|
SOURCE_SUM=0de75de7da9d9b8058e208cf78d6f20852a790fca6d8231d432f3f62d12939ff
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=zip
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "photo gallery",
|
"en": "photo gallery",
|
||||||
"fr": "Galerie photo"
|
"fr": "Galerie photo"
|
||||||
},
|
},
|
||||||
"version": "2.10.1~ynh2",
|
"version": "2.10.2~ynh1",
|
||||||
"url": "http://piwigo.org",
|
"url": "http://piwigo.org",
|
||||||
"license": "GPL-2.0",
|
"license": "GPL-2.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -158,6 +158,8 @@ shopt -s extglob
|
||||||
|
|
||||||
datapath=/home/yunohost.app/$app
|
datapath=/home/yunohost.app/$app
|
||||||
|
|
||||||
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
|
then
|
||||||
# Install files and set permissions
|
# Install files and set permissions
|
||||||
cp -a $tmpdir/!(upload|_data|galleries) $final_path
|
cp -a $tmpdir/!(upload|_data|galleries) $final_path
|
||||||
|
|
||||||
|
@ -177,12 +179,13 @@ if [ ! -h $final_path/galleries ] ; then
|
||||||
ln -sd $datapath/galleries $final_path/galleries
|
ln -sd $datapath/galleries $final_path/galleries
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
fi
|
||||||
|
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
chown -R $app: $datapath
|
chown -R $app: $datapath
|
||||||
chmod 755 -R $final_path/_data
|
chmod 755 -R $final_path/_data
|
||||||
|
|
||||||
ynh_secure_remove --file="$tmpdir"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE APPLICATION WITH CURL
|
# UPGRADE APPLICATION WITH CURL
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -237,6 +240,9 @@ ynh_store_file_checksum --file="$final_path/local/config/database.inc.php"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring LDAP plugin..."
|
ynh_script_progression --message="Configuring LDAP plugin..."
|
||||||
|
|
||||||
|
# Disable LDAP plugin to avoid warning messages during API call
|
||||||
|
ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name <<< "DELETE FROM plugins WHERE id='Ldap_Login';"
|
||||||
|
|
||||||
# Activate the LDAP plugin using the WS API
|
# Activate the LDAP plugin using the WS API
|
||||||
|
|
||||||
# Login with admin account
|
# Login with admin account
|
||||||
|
|
Loading…
Reference in a new issue