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:
eric_G 2024-07-15 22:02:05 +02:00 committed by GitHub
commit 449a2eadcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 22 additions and 1056 deletions

View file

@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# Piwigo for YunoHost
[![Integration level](https://dash.yunohost.org/integration/piwigo.svg)](https://dash.yunohost.org/appci/app/piwigo) ![Working status](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Integration level](https://dash.yunohost.org/integration/piwigo.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/) ![Working status](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Install Piwigo with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=piwigo)
@ -19,7 +19,7 @@ It shall NOT be edited by hand.
Piwigo is a photo gallery software for the web, built by an active community of users and developers. Extensions make Piwigo easily customizable.
**Shipped version:** 14.3.0~ynh1
**Shipped version:** 14.4.0~ynh1
**Demo:** <https://piwigo.org/demo>

View file

@ -5,7 +5,7 @@ No se debe editar a mano.
# Piwigo para Yunohost
[![Nivel de integración](https://dash.yunohost.org/integration/piwigo.svg)](https://dash.yunohost.org/appci/app/piwigo) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/piwigo.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/) ![Estado funcional](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Estado En Mantención](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Instalar Piwigo con Yunhost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=piwigo)
@ -19,7 +19,7 @@ No se debe editar a mano.
Piwigo is a photo gallery software for the web, built by an active community of users and developers. Extensions make Piwigo easily customizable.
**Versión actual:** 14.3.0~ynh1
**Versión actual:** 14.4.0~ynh1
**Demo:** <https://piwigo.org/demo>

View file

@ -5,7 +5,7 @@ EZ editatu eskuz.
# Piwigo YunoHost-erako
[![Integrazio maila](https://dash.yunohost.org/integration/piwigo.svg)](https://dash.yunohost.org/appci/app/piwigo) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Integrazio maila](https://dash.yunohost.org/integration/piwigo.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/) ![Funtzionamendu egoera](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Mantentze egoera](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Instalatu Piwigo YunoHost-ekin](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=piwigo)
@ -19,7 +19,7 @@ EZ editatu eskuz.
Piwigo is a photo gallery software for the web, built by an active community of users and developers. Extensions make Piwigo easily customizable.
**Paketatutako bertsioa:** 14.3.0~ynh1
**Paketatutako bertsioa:** 14.4.0~ynh1
**Demoa:** <https://piwigo.org/demo>

View file

@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
# Piwigo pour YunoHost
[![Niveau dintégration](https://dash.yunohost.org/integration/piwigo.svg)](https://dash.yunohost.org/appci/app/piwigo) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Niveau dintégration](https://dash.yunohost.org/integration/piwigo.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Statut de maintenance](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)
@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
Piwigo est un logiciel de galerie photo pour le web, construit par une communauté active d'utilisateurs et de développeurs. Des extensions rendent Piwigo facilement personnalisable.
**Version incluse:** 14.3.0~ynh1
**Version incluse:** 14.4.0~ynh1
**Démo:** <https://piwigo.org/demo>

View file

@ -5,7 +5,7 @@ NON debe editarse manualmente.
# Piwigo para YunoHost
[![Nivel de integración](https://dash.yunohost.org/integration/piwigo.svg)](https://dash.yunohost.org/appci/app/piwigo) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Nivel de integración](https://dash.yunohost.org/integration/piwigo.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/) ![Estado de funcionamento](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![Estado de mantemento](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![Instalar Piwigo con YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=piwigo)
@ -19,7 +19,7 @@ NON debe editarse manualmente.
Piwigo is a photo gallery software for the web, built by an active community of users and developers. Extensions make Piwigo easily customizable.
**Versión proporcionada:** 14.3.0~ynh1
**Versión proporcionada:** 14.4.0~ynh1
**Demo:** <https://piwigo.org/demo>

View file

@ -5,7 +5,7 @@
# YunoHost 上的 Piwigo
[![集成程度](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)
[![集成程度](https://dash.yunohost.org/integration/piwigo.svg)](https://ci-apps.yunohost.org/ci/apps/piwigo/) ![工作状态](https://ci-apps.yunohost.org/ci/badges/piwigo.status.svg) ![维护状态](https://ci-apps.yunohost.org/ci/badges/piwigo.maintain.svg)
[![使用 YunoHost 安装 Piwigo](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=piwigo)
@ -19,7 +19,7 @@
Piwigo is a photo gallery software for the web, built by an active community of users and developers. Extensions make Piwigo easily customizable.
**分发版本:** 14.3.0~ynh1
**分发版本:** 14.4.0~ynh1
**演示:** <https://piwigo.org/demo>

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,7 @@ name = "Piwigo"
description.en = "Open source photo gallery for the web"
description.fr = "Galerie de photos open source pour le web"
version = "14.3.0~ynh1"
version = "14.4.0~ynh1"
maintainers = ["JimboJoe"]
@ -48,7 +48,7 @@ ram.runtime = "50M"
ask.fr = "Choisissez la langue de l'application"
type = "select"
choices = ["fr_FR", "en_UK"]
default = "en_UK"
default = "fr_FR"
[install.admin]
type = "user"
@ -58,8 +58,8 @@ ram.runtime = "50M"
[resources]
[resources.sources.main]
url = "https://piwigo.org/download/dlcounter.php?code=14.3.0"
sha256 = "ab1d329afbb092ef74534bc09f56ef75a81d26443383e6ae47fe9801808552ef"
url = "https://piwigo.org/download/dlcounter.php?code=14.4.0"
sha256 = "d9c4c422626537e1beb65a9cadcf712a5ead2f63cae3775d85ae17241c3e3dc0"
format = "zip"
autoupdate.strategy = "latest_github_release"
@ -79,12 +79,9 @@ ram.runtime = "50M"
format = "zip"
[resources.system_user]
allow_email = true
[resources.install_dir]
[resources.data_dir]
[resources.permissions]
main.url = "/"

View file

@ -8,16 +8,6 @@
# PERSONAL HELPERS
#=================================================
_create_data_dirs_if_required() {
dirs=(_data galleries upload)
for dir in "${dirs[@]}"; do
if [ ! -d "$data_dir/$dir" ]; then
rsync -a "$install_dir/$dir/" "$data_dir/$dir/"
fi
ynh_secure_remove "$install_dir/$dir"
done
}
#=================================================
# EXPERIMENTAL HELPERS
#=================================================

View file

@ -19,12 +19,6 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir"
#=================================================
# BACKUP THE DATA DIR
#=================================================
ynh_backup --src_path="$data_dir" --is_big
#=================================================
# BACKUP THE SYSTEM CONFIGURATION
#=================================================

View file

@ -21,14 +21,11 @@ ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir/plugins/Ldap_Login" --source_id=ldap_plugin
ynh_setup_source --dest_dir="$install_dir/plugins" --source_id=log_failed_logins_plugin
_create_data_dirs_if_required
#_create_data_dirs_if_required
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
chmod -R o-rwx "$data_dir"
chown -R "$app:www-data" "$data_dir"
#=================================================
# SYSTEM CONFIGURATIONS
#=================================================

View file

@ -18,15 +18,6 @@ ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
#=================================================
# RESTORE THE DATA DIRECTORY
#=================================================
ynh_script_progression --message="Restoring the data directory..." --weight=2
ynh_restore_file --origin_path="$data_dir" --not_mandatory
chown -R "$app:www-data" "$data_dir"
#=================================================
# RESTORE THE MYSQL DATABASE
#=================================================

View file

@ -25,15 +25,10 @@ fi
#=================================================
ynh_script_progression --message="Upgrading source files..." --weight=3
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="local/config/config.inc.php local/config/database.inc.php"
ynh_setup_source --dest_dir="$install_dir" --keep="local/config/config.inc.php local/config/database.inc.php" #--full_replace=1
ynh_setup_source --dest_dir="$install_dir/plugins/Ldap_Login" --source_id=ldap_plugin --full_replace=1
ynh_setup_source --dest_dir="$install_dir/plugins" --source_id=log_failed_logins_plugin --full_replace=1
_create_data_dirs_if_required
chmod -R o-rwx "$data_dir"
chown -R "$app:www-data" "$data_dir"
chmod -R o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"

View file

@ -8,20 +8,6 @@ test_format = 1.0
# Commits to test upgrade from
# -------------------------------
[default.test_upgrade_from.bc9ab6f21a7dcaab9245ef5cbfc9d6c4bd026925]
name = "Upgrade from 12.0.0"
args.domain = "domain.tld"
args.path = "/"
args.language = "en"
args.admin = "package_checker"
[default.test_upgrade_from.cd09a41142c55f4d4c0e654574ccb3e9d1ad3f91]
name = "Upgrade from 12.1.0"
args.domain = "domain.tld"
args.path = "/"
args.language = "en"
args.admin = "package_checker"
[default.test_upgrade_from.1cac04c39ba70cef6571bcb9ae4afca5ccb48ca7]
name = "Upgrade from 13.1.0"
args.domain = "domain.tld"