1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00
This commit is contained in:
ericgaspar 2021-11-05 23:36:21 +01:00
parent bb70605b5e
commit 2b1e521e0c
No known key found for this signature in database
GPG key ID: 574F281483054D44
7 changed files with 26 additions and 4 deletions

View file

@ -1,6 +1,5 @@
SOURCE_URL=https://piwigo.org/download/dlcounter.php?code=11.5.0
SOURCE_SUM=bfecdd743c62cdb4e1936662178d019af264ea763d26c8c832da836fbe09652d
SOURCE_URL=https://piwigo.org/download/dlcounter.php?code=12.0.0
SOURCE_SUM=cb711819cfcc931e79f975cef1fc12f7d1289d2d260455af1aac91419858e68f
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=

View file

@ -3,4 +3,3 @@ SOURCE_SUM=3c22652f6c0653aaeebe239435796748ee57612ad44e8e5f2553277545d36e5e
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=

1
doc/DESCRIPTION.md Normal file
View file

@ -0,0 +1 @@
[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.

9
doc/DISCLAIMER.md Normal file
View file

@ -0,0 +1,9 @@
## YunoHost specific features
In addition to Piwigo core features, the following are made available with this package:
* Integrate with YunoHost users and SSO:
* private mode: limit access to YunoHost users
* public mode:
* SSO for YunoHost users
* allow other users management, and guest mode
* Allow one YunoHost user to be the administrator (set at the installation)

View file

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

View file

@ -101,6 +101,8 @@ mkdir $final_path
cp -a $tmpdir/!(upload|_data|galleries) $final_path
datapath=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=datapath --value=$datapath
mkdir -p $datapath/_data
mkdir -p $datapath/upload
mkdir -p $datapath/galleries

View file

@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
datapath=$(ynh_app_setting_get --app=$app --key=datapath)
#=================================================
# STANDARD REMOVE
@ -47,6 +48,17 @@ ynh_script_progression --message="Removing app main directory..."
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE DATA DIR
#=================================================
# Remove the data directory if --purge option is used
if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
then
ynh_script_progression --message="Removing app data directory..." --weight=1
ynh_secure_remove --file="$datapath"
fi
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================