mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
parent
bb70605b5e
commit
0deba82178
13 changed files with 152 additions and 81 deletions
127
README.md
127
README.md
|
@ -1,67 +1,60 @@
|
||||||
# Piwigo for YunoHost
|
<!--
|
||||||
|
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
||||||
[![Integration level](https://dash.yunohost.org/integration/piwigo.svg)](https://dash.yunohost.org/appci/app/piwigo) ![](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
|
It shall NOT be edited by hand.
|
||||||
[![Install Piwigo with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=piwigo)
|
-->
|
||||||
|
|
||||||
> *This package allow you to install Piwigo quickly and simply on a YunoHost server.
|
# Piwigo for YunoHost
|
||||||
If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.*
|
|
||||||
|
[![Integration level](https://dash.yunohost.org/integration/piwigo.svg)](https://dash.yunohost.org/appci/app/piwigo) ![](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
|
||||||
## Overview
|
[![Install Piwigo with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=piwigo)
|
||||||
|
|
||||||
[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.
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
|
||||||
**Shipped version:** 11.5.0~ynh1
|
> *This package allows you to install Piwigo quickly and simply on a YunoHost server.
|
||||||
|
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
|
||||||
## Screenshots
|
|
||||||
|
## Overview
|
||||||
![](sources/screenshot_Piwigo.jpg)
|
|
||||||
|
[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.
|
||||||
## Demo
|
|
||||||
|
|
||||||
* [Official demo](http://piwigo.org/demo/)
|
**Shipped version:** 12.0.0~ynh1
|
||||||
|
|
||||||
## Configuration
|
**Demo:** https://piwigo.org/demo
|
||||||
|
|
||||||
## Documentation
|
## Screenshots
|
||||||
|
|
||||||
* Official documentation: https://piwigo.org/doc/doku.php
|
![](./doc/screenshots/screenshot_Piwigo.jpg)
|
||||||
* YunoHost documentation: https://yunohost.org/#/app_piwigo
|
|
||||||
|
## Disclaimers / important information
|
||||||
## YunoHost specific features
|
|
||||||
|
## YunoHost specific features
|
||||||
In addition to Piwigo core features, the following are made available with this package:
|
|
||||||
* Integrate with YunoHost users and SSO:
|
In addition to Piwigo core features, the following are made available with this package:
|
||||||
* private mode: limit access to YunoHost users
|
* Integrate with YunoHost users and SSO:
|
||||||
* public mode:
|
* private mode: limit access to YunoHost users
|
||||||
* SSO for YunoHost users
|
* public mode:
|
||||||
* allow other users management, and guest mode
|
* SSO for YunoHost users
|
||||||
* Allow one YunoHost user to be the administrator (set at the installation)
|
* allow other users management, and guest mode
|
||||||
|
* Allow one YunoHost user to be the administrator (set at the installation)
|
||||||
#### Supported architectures
|
|
||||||
|
## Documentation and resources
|
||||||
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/piwigo%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/)
|
|
||||||
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/piwigo%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/piwigo/)
|
* Official app website: http://piwigo.org
|
||||||
|
* Official admin documentation: https://piwigo.org/guides
|
||||||
## Limitations
|
* Upstream app code repository: https://github.com/Piwigo/Piwigo
|
||||||
|
* YunoHost documentation for this app: https://yunohost.org/app_piwigo
|
||||||
## Additionnal informations
|
* Report a bug: https://github.com/YunoHost-Apps/piwigo_ynh/issues
|
||||||
|
|
||||||
## Links
|
## Developer info
|
||||||
|
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/piwigo_ynh/issues
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing).
|
||||||
* Piwigo website: http://piwigo.org/
|
|
||||||
* Piwigo repository: https://github.com/Piwigo/Piwigo
|
To try the testing branch, please proceed like that.
|
||||||
* YunoHost website: https://yunohost.org/
|
```
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing --debug
|
||||||
---
|
or
|
||||||
|
sudo yunohost app upgrade piwigo -u https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing --debug
|
||||||
## Developers infos
|
```
|
||||||
|
|
||||||
Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing).
|
**More info regarding app packaging:** https://yunohost.org/packaging_apps
|
||||||
|
|
||||||
To try the testing branch, please proceed like that.
|
|
||||||
```
|
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing --debug
|
|
||||||
or
|
|
||||||
sudo yunohost app upgrade piwigo -u https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing --debug
|
|
||||||
```
|
|
56
README_fr.md
Normal file
56
README_fr.md
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
# Piwigo pour YunoHost
|
||||||
|
|
||||||
|
[![Niveau d'intégration](https://dash.yunohost.org/integration/piwigo.svg)](https://dash.yunohost.org/appci/app/piwigo) ![](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
|
||||||
|
[![Installer Piwigo avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=piwigo)
|
||||||
|
|
||||||
|
*[Read this readme in english.](./README.md)*
|
||||||
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
|
||||||
|
> *Ce package vous permet d'installer Piwigo rapidement et simplement sur un serveur YunoHost.
|
||||||
|
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||||
|
|
||||||
|
## Vue d'ensemble
|
||||||
|
|
||||||
|
[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.
|
||||||
|
|
||||||
|
|
||||||
|
**Version incluse :** 12.0.0~ynh1
|
||||||
|
|
||||||
|
**Démo :** https://piwigo.org/demo
|
||||||
|
|
||||||
|
## Captures d'écran
|
||||||
|
|
||||||
|
![](./doc/screenshots/screenshot_Piwigo.jpg)
|
||||||
|
|
||||||
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
|
## 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)
|
||||||
|
|
||||||
|
## Documentations et ressources
|
||||||
|
|
||||||
|
* Site officiel de l'app : http://piwigo.org
|
||||||
|
* Documentation officielle de l'admin : https://piwigo.org/guides
|
||||||
|
* Dépôt de code officiel de l'app : https://github.com/Piwigo/Piwigo
|
||||||
|
* Documentation YunoHost pour cette app : https://yunohost.org/app_piwigo
|
||||||
|
* Signaler un bug : https://github.com/YunoHost-Apps/piwigo_ynh/issues
|
||||||
|
|
||||||
|
## Informations pour les développeurs
|
||||||
|
|
||||||
|
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing).
|
||||||
|
|
||||||
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
|
```
|
||||||
|
sudo yunohost app install https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing --debug
|
||||||
|
ou
|
||||||
|
sudo yunohost app upgrade piwigo -u https://github.com/YunoHost-Apps/piwigo_ynh/tree/testing --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
|
|
@ -16,7 +16,6 @@
|
||||||
upgrade=1 from_commit=d28c7cd4613a7455f316c91920a065676730ca46
|
upgrade=1 from_commit=d28c7cd4613a7455f316c91920a065676730ca46
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
port_already_use=0
|
|
||||||
change_url=1
|
change_url=1
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=
|
Email=
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
SOURCE_URL=https://piwigo.org/download/dlcounter.php?code=11.5.0
|
SOURCE_URL=https://piwigo.org/download/dlcounter.php?code=12.0.0
|
||||||
SOURCE_SUM=bfecdd743c62cdb4e1936662178d019af264ea763d26c8c832da836fbe09652d
|
SOURCE_SUM=cb711819cfcc931e79f975cef1fc12f7d1289d2d260455af1aac91419858e68f
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=zip
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=
|
|
||||||
|
|
|
@ -3,4 +3,3 @@ SOURCE_SUM=3c22652f6c0653aaeebe239435796748ee57612ad44e8e5f2553277545d36e5e
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=zip
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=
|
|
||||||
|
|
|
@ -3,4 +3,3 @@ SOURCE_SUM=85b9a06f2c7ca8ae9698e6151c7631f519c945f696b02da72f9ff53243d7e4ca
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=zip
|
||||||
SOURCE_IN_SUBDIR=false
|
SOURCE_IN_SUBDIR=false
|
||||||
SOURCE_FILENAME=
|
|
||||||
|
|
1
doc/DESCRIPTION.md
Normal file
1
doc/DESCRIPTION.md
Normal 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
9
doc/DISCLAIMER.md
Normal 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)
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
@ -6,8 +6,15 @@
|
||||||
"en": "Open source photo gallery for the web",
|
"en": "Open source photo gallery for the web",
|
||||||
"fr": "Galerie de photos open source pour le web"
|
"fr": "Galerie de photos open source pour le web"
|
||||||
},
|
},
|
||||||
"version": "11.5.0~ynh1",
|
"version": "12.0.0~ynh1",
|
||||||
"url": "http://piwigo.org",
|
"url": "http://piwigo.org",
|
||||||
|
"upstream": {
|
||||||
|
"license": "GPL-2.0",
|
||||||
|
"website": "http://piwigo.org",
|
||||||
|
"demo": "https://piwigo.org/demo",
|
||||||
|
"admindoc": "https://piwigo.org/guides",
|
||||||
|
"code": "https://github.com/Piwigo/Piwigo"
|
||||||
|
},
|
||||||
"license": "GPL-2.0",
|
"license": "GPL-2.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "JimboJoe",
|
"name": "JimboJoe",
|
||||||
|
@ -15,7 +22,7 @@
|
||||||
"url": ""
|
"url": ""
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.1.3"
|
"yunohost": ">= 4.2.3"
|
||||||
},
|
},
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
|
@ -27,8 +34,7 @@
|
||||||
"install" : [
|
"install" : [
|
||||||
{
|
{
|
||||||
"name": "domain",
|
"name": "domain",
|
||||||
"type": "domain",
|
"type": "domain"
|
||||||
"example": "domain.org"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "path",
|
"name": "path",
|
||||||
|
@ -38,8 +44,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"type": "user",
|
"type": "user"
|
||||||
"example": "homer"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
|
|
|
@ -101,6 +101,7 @@ mkdir $final_path
|
||||||
cp -a $tmpdir/!(upload|_data|galleries) $final_path
|
cp -a $tmpdir/!(upload|_data|galleries) $final_path
|
||||||
|
|
||||||
datapath=/home/yunohost.app/$app
|
datapath=/home/yunohost.app/$app
|
||||||
|
|
||||||
mkdir -p $datapath/_data
|
mkdir -p $datapath/_data
|
||||||
mkdir -p $datapath/upload
|
mkdir -p $datapath/upload
|
||||||
mkdir -p $datapath/galleries
|
mkdir -p $datapath/galleries
|
||||||
|
|
|
@ -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_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
db_user=$db_name
|
db_user=$db_name
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
|
datapath=$(ynh_app_setting_get --app=$app --key=datapath)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD REMOVE
|
# STANDARD REMOVE
|
||||||
|
@ -47,6 +48,17 @@ ynh_script_progression --message="Removing app main directory..."
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
ynh_secure_remove --file="$final_path"
|
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
|
# REMOVE NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -37,8 +37,6 @@ datapath=$(ynh_app_setting_get --app=$app --key=datapath)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating restoration parameters..."
|
ynh_script_progression --message="Validating restoration parameters..."
|
||||||
|
|
||||||
ynh_webpath_available --domain=$domain --path_url=$path_url \
|
|
||||||
|| ynh_die --message="Path not available: ${domain}${path_url}"
|
|
||||||
test ! -d $final_path \
|
test ! -d $final_path \
|
||||||
|| ynh_die --message="There is already a directory: $final_path "
|
|| ynh_die --message="There is already a directory: $final_path "
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue