diff --git a/README.md b/README.md
index 43f9831..a564e9f 100755
--- a/README.md
+++ b/README.md
@@ -22,8 +22,7 @@ Omeka S is a web publication system for universities, galleries, libraries, arch
- Connect to the semantic Web
- Share with DPLA
-**Shipped version:** 3.2.3~ynh1
-
+**Shipped version:** 4.0.0~ynh1
**Demo:** https://omeka.org/s/download/#sandbox
diff --git a/README_fr.md b/README_fr.md
index 9da0994..4401f2c 100755
--- a/README_fr.md
+++ b/README_fr.md
@@ -5,15 +5,15 @@ It shall NOT be edited by hand.
# Omeka S pour YunoHost
-[![Niveau d'intégration](https://dash.yunohost.org/integration/omeka-s.svg)](https://dash.yunohost.org/appci/app/omeka-s) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/omeka-s.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/omeka-s.maintain.svg)
+[![Niveau d’intégration](https://dash.yunohost.org/integration/omeka-s.svg)](https://dash.yunohost.org/appci/app/omeka-s) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/omeka-s.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/omeka-s.maintain.svg)
[![Installer Omeka S avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=omeka-s)
*[Read this readme in english.](./README.md)*
-> *Ce package vous permet d'installer Omeka S 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.*
+> *Ce package vous permet d’installer Omeka S 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
+## Vue d’ensemble
Omeka S is a web publication system for universities, galleries, libraries, archives, and museums. It consists of a local network of independently curated exhibits sharing a collaboratively built pool of items, media, and their metadata.
@@ -22,20 +22,19 @@ Omeka S is a web publication system for universities, galleries, libraries, arch
- Connect to the semantic Web
- Share with DPLA
-**Version incluse :** 3.2.3~ynh1
-
+**Version incluse :** 4.0.0~ynh1
**Démo :** https://omeka.org/s/download/#sandbox
-## Captures d'écran
+## Captures d’écran
-![Capture d'écran de Omeka S](./doc/screenshots/omeka-s.png)
+![Capture d’écran de Omeka S](./doc/screenshots/omeka-s.png)
## Documentations et ressources
-* Site officiel de l'app :
+* Site officiel de l’app :
* Documentation officielle utilisateur :
-* Dépôt de code officiel de l'app :
+* Dépôt de code officiel de l’app :
* Documentation YunoHost pour cette app :
* Signaler un bug :
@@ -51,4 +50,4 @@ ou
sudo yunohost app upgrade omeka-s -u https://github.com/YunoHost-Apps/omeka-s_ynh/tree/testing --debug
```
-**Plus d'infos sur le packaging d'applications :**
+**Plus d’infos sur le packaging d’applications :**
\ No newline at end of file
diff --git a/conf/app.src b/conf/app.src
index b36de25..7c7220c 100755
--- a/conf/app.src
+++ b/conf/app.src
@@ -1,5 +1,5 @@
-SOURCE_URL=https://github.com/omeka/omeka-s/releases/download/v3.2.3/omeka-s-3.2.3.zip
-SOURCE_SUM=65b6992809b943ea806eb40c5a4e65a5561dd689c0970e7a65a262c2198c69ef
+SOURCE_URL=https://github.com/omeka/omeka-s/releases/download/v4.0.0/omeka-s-4.0.0.zip
+SOURCE_SUM=bbc103ce6beefe780811f7499da2fd4ab678db0bbda9f532ab3b64cd741d11f5
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true
diff --git a/config_panel.toml b/config_panel.toml
index 6edbf5f..b60bb55 100644
--- a/config_panel.toml
+++ b/config_panel.toml
@@ -7,19 +7,24 @@ name = "Omega-s configuration"
name = "PHP-FPM configuration"
[main.php_fpm_config.fpm_footprint]
- ask = "Memory footprint of the service?"
- choices = ["low", "medium", "high", "specific"]
+ ask = "Memory footprint"
+ type = "select"
+ choices.low = "Low, <= 20Mb per pool"
+ choices.medium = "Medium, between 20Mb and 40Mb per pool"
+ choices.high = "High, > 40Mb per pool"
+ choices.specific = "Use specific value"
default = "low"
- help = "low <= 20Mb per pool. medium between 20Mb and 40Mb per pool. high > 40Mb per pool.
Use specific to set a value with the following option."
- [main.php_fpm_config.free_footprint]
+ [main.php_fpm_config.fpm_free_footprint]
+ visible = "fpm_footprint == 'specific'"
ask = "Memory footprint of the service?"
type = "number"
default = "0"
help = "Free field to specify exactly the footprint in Mb if you don't want to use one of the three previous values."
[main.php_fpm_config.fpm_usage]
- ask = "Expected usage of the service?"
+ ask = "Expected usage"
+ type = "select"
choices = ["low", "medium", "high"]
default = "low"
help = "low: Personal usage, behind the SSO. No RAM footprint when not used, but the impact on the processor can be high if many users are using the service.
medium: Low usage, few people or/and publicly accessible. Low RAM footprint, medium processor footprint when used.
high: High usage, frequently visited website. High RAM footprint, but lower on processor usage and quickly responding."
diff --git a/manifest.json b/manifest.json
index fce412d..2b385ad 100755
--- a/manifest.json
+++ b/manifest.json
@@ -6,7 +6,7 @@
"en": "Web publication system for universities, galleries, libraries, archives, and museums",
"fr": "Système de publication Web pour les universités, les galeries, les bibliothèques, les archives et les musées"
},
- "version": "3.2.3~ynh1",
+ "version": "4.0.0~ynh1",
"url": "https://omeka.org/",
"upstream": {
"license": "AGPL-3.0-only",
diff --git a/scripts/config b/scripts/config
index 8a9110c..91c2de7 100644
--- a/scripts/config
+++ b/scripts/config
@@ -56,10 +56,10 @@ set__fpm_footprint() {
fi
}
-set__free_footprint() {
- if [ "$fpm_footprint" == "specific" ]
+set__fpm_free_footprint() {
+ if [ "$fpm_footprint" = "specific" ]
then
- ynh_app_setting_set --app=$app --key=fpm_footprint --value="$free_footprint"
+ ynh_app_setting_set --app=$app --key=fpm_footprint --value="$fpm_free_footprint"
fi
}
@@ -70,11 +70,11 @@ set__free_footprint() {
ynh_app_config_validate() {
_ynh_app_config_validate
- if [ "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[free_footprint]}" == "true" ]; then
- # If fpm_footprint is set to 'specific', use $free_footprint value.
- if [ "$fpm_footprint" == "specific" ]
+ if [ "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[fpm_free_footprint]}" == "true" ]; then
+ # If fpm_footprint is set to 'specific', use $fpm_free_footprint value.
+ if [ "$fpm_footprint" = "specific" ]
then
- fpm_footprint=$free_footprint
+ fpm_footprint=$fpm_free_footprint
fi
if [ "$fpm_footprint" == "0" ]
diff --git a/scripts/install b/scripts/install
index 92e0cf9..efd52a1 100755
--- a/scripts/install
+++ b/scripts/install
@@ -27,6 +27,10 @@ phpversion=$YNH_PHP_VERSION
app=$YNH_APP_INSTANCE_NAME
+fpm_footprint="low"
+fpm_free_footprint=0
+fpm_usage="low"
+
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
#=================================================
@@ -101,7 +105,7 @@ chown -R $app:www-data "$final_path"
ynh_script_progression --message="Configuring PHP-FPM..." --weight=5
# Create a dedicated PHP-FPM config
-ynh_add_fpm_config --usage=low --footprint=low
+ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
diff --git a/scripts/upgrade b/scripts/upgrade
index 7bfecf7..f9051c9 100755
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -25,6 +25,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
fpm_footprint=$(ynh_app_setting_get --app=$app --key=fpm_footprint)
+fpm_free_footprint=$(ynh_app_setting_get --app=$app --key=fpm_free_footprint)
fpm_usage=$(ynh_app_setting_get --app=$app --key=fpm_usage)
#=================================================
@@ -54,14 +55,20 @@ ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If fpm_footprint doesn't exist, create it
if [ -z "$fpm_footprint" ]; then
- fpm_footprint=low
- ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
+ fpm_footprint=low
+ ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
+fi
+
+# If fpm_free_footprint doesn't exist, create it
+if [ -z "$fpm_free_footprint" ]; then
+ fpm_free_footprint=0
+ ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
fi
# If fpm_usage doesn't exist, create it
if [ -z "$fpm_usage" ]; then
- fpm_usage=low
- ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
+ fpm_usage=low
+ ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
fi
#=================================================