diff --git a/README.md b/README.md
index 81eb8a6..2530f57 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ In the context of YunoHost, Nextcloud integrates with the SSO / user portal (Yun
The `/.well-known` address will be automatically configured for CalDAV and CardDAV synchronization if no other service such as Baïkal is already using it.
-**Shipped version:** 29.0.4~ynh1
+**Shipped version:** 29.0.5~ynh1
**Demo:**
diff --git a/README_es.md b/README_es.md
index 9b75f1c..33673b9 100644
--- a/README_es.md
+++ b/README_es.md
@@ -23,7 +23,7 @@ In the context of YunoHost, Nextcloud integrates with the SSO / user portal (Yun
The `/.well-known` address will be automatically configured for CalDAV and CardDAV synchronization if no other service such as Baïkal is already using it.
-**Versión actual:** 29.0.4~ynh1
+**Versión actual:** 29.0.5~ynh1
**Demo:**
diff --git a/README_eu.md b/README_eu.md
index 8b722e4..f657a4a 100644
--- a/README_eu.md
+++ b/README_eu.md
@@ -23,7 +23,7 @@ In the context of YunoHost, Nextcloud integrates with the SSO / user portal (Yun
The `/.well-known` address will be automatically configured for CalDAV and CardDAV synchronization if no other service such as Baïkal is already using it.
-**Paketatutako bertsioa:** 29.0.4~ynh1
+**Paketatutako bertsioa:** 29.0.5~ynh1
**Demoa:**
diff --git a/README_fr.md b/README_fr.md
index f59d583..064a9d9 100644
--- a/README_fr.md
+++ b/README_fr.md
@@ -23,7 +23,7 @@ Dans le cadre de YunoHost, Nextcloud s'intègre avec le SSO / portail utilisateu
L'adresse `/.well-known` sera automatiquement configuré pour la synchronisation CalDAV et CardDAV si aucun autre service tel que Baïkal ne l'utilise déjà.
-**Version incluse :** 29.0.4~ynh1
+**Version incluse :** 29.0.5~ynh1
**Démo :**
diff --git a/README_gl.md b/README_gl.md
index 9a823a3..86d544f 100644
--- a/README_gl.md
+++ b/README_gl.md
@@ -23,7 +23,7 @@ In the context of YunoHost, Nextcloud integrates with the SSO / user portal (Yun
The `/.well-known` address will be automatically configured for CalDAV and CardDAV synchronization if no other service such as Baïkal is already using it.
-**Versión proporcionada:** 29.0.4~ynh1
+**Versión proporcionada:** 29.0.5~ynh1
**Demo:**
diff --git a/README_id.md b/README_id.md
index 71cbfaa..aa9d19a 100644
--- a/README_id.md
+++ b/README_id.md
@@ -23,7 +23,7 @@ In the context of YunoHost, Nextcloud integrates with the SSO / user portal (Yun
The `/.well-known` address will be automatically configured for CalDAV and CardDAV synchronization if no other service such as Baïkal is already using it.
-**Versi terkirim:** 29.0.4~ynh1
+**Versi terkirim:** 29.0.5~ynh1
**Demo:**
diff --git a/README_ru.md b/README_ru.md
index d46497c..9442e13 100644
--- a/README_ru.md
+++ b/README_ru.md
@@ -23,7 +23,7 @@ In the context of YunoHost, Nextcloud integrates with the SSO / user portal (Yun
The `/.well-known` address will be automatically configured for CalDAV and CardDAV synchronization if no other service such as Baïkal is already using it.
-**Поставляемая версия:** 29.0.4~ynh1
+**Поставляемая версия:** 29.0.5~ynh1
**Демо-версия:**
diff --git a/README_zh_Hans.md b/README_zh_Hans.md
index 465182e..0d157c0 100644
--- a/README_zh_Hans.md
+++ b/README_zh_Hans.md
@@ -23,7 +23,7 @@ In the context of YunoHost, Nextcloud integrates with the SSO / user portal (Yun
The `/.well-known` address will be automatically configured for CalDAV and CardDAV synchronization if no other service such as Baïkal is already using it.
-**分发版本:** 29.0.4~ynh1
+**分发版本:** 29.0.5~ynh1
**演示:**
diff --git a/manifest.toml b/manifest.toml
index 14e4dd9..0353543 100644
--- a/manifest.toml
+++ b/manifest.toml
@@ -5,7 +5,7 @@ name = "Nextcloud"
description.en = "Online storage, file sharing platform and various other applications"
description.fr = "Stockage en ligne, plateforme de partage de fichiers et diverses autres applications"
-version = "29.0.4~ynh1"
+version = "29.0.5~ynh1"
maintainers = ["kay0u"]
@@ -19,7 +19,7 @@ code = "https://github.com/nextcloud/server"
cpe = "cpe:2.3:a:nextcloud:nextcloud"
[integration]
-yunohost = ">= 11.2"
+yunohost = ">= 11.2.27"
architectures = ["amd64", "arm64", "armhf"]
multi_instance = true
@@ -71,8 +71,8 @@ ram.runtime = "512M"
[resources.sources]
[resources.sources.main]
- url = 'https://download.nextcloud.com/server/releases/nextcloud-29.0.4.tar.bz2'
- sha256 = '19c469e264b31ee80400f8396460854546569e88db4c15fc0854e192f96027eb'
+ url = 'https://download.nextcloud.com/server/releases/nextcloud-29.0.5.tar.bz2'
+ sha256 = 'c7fe9c61e5ec30a5e599e8f152a1825df684d30e899db0caa8868c8d67b53a2c'
[resources.sources.28]
url = 'https://download.nextcloud.com/server/releases/nextcloud-28.0.8.tar.bz2'
diff --git a/scripts/_common.sh b/scripts/_common.sh
index 653a0b0..4cdc018 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -9,8 +9,8 @@
#=================================================
wait_nginx_reload() {
- # Nginx may take some time to support the new configuration,
- # wait for the nextcloud configuration file to disappear from nginx before checking the CalDAV/CardDAV URL.
+ # NGINX may take some time to support the new configuration,
+ # wait for the Nextcloud configuration file to disappear from NGINX before checking the CalDAV/CardDAV URL.
timeout=30
for i in $(seq 1 $timeout); do
if ! ynh_exec_warn_less nginx -T | grep --quiet "# configuration file /etc/nginx/conf.d/$domain.d/$app.conf:"; then
@@ -18,9 +18,10 @@ wait_nginx_reload() {
fi
sleep 1
done
+ # Wait untils NGINX has fully reloaded (avoid cURL fail with http2)
+ sleep 2
}
-
# Check if an URL is already handled
# usage: is_url_handled --domain=DOMAIN --path=PATH_URI
is_url_handled() {
@@ -32,22 +33,22 @@ is_url_handled() {
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
- # Try to get the url with curl, and keep the http code and an eventual redirection url.
+ # Try to get the URL with cURL, and keep the http code and an eventual redirection URL.
local curl_output="$(curl --insecure --silent --output /dev/null \
--write-out '%{http_code};%{redirect_url}' https://127.0.0.1$path --header "Host: $domain" --resolve $domain:443:127.0.0.1)"
# Cut the output and keep only the first part to keep the http code
local http_code="${curl_output%%;*}"
- # Do the same thing but keep the second part, the redirection url
+ # Do the same thing but keep the second part, the redirection URL
local redirection="${curl_output#*;}"
- # Return 1 if the url isn't handled.
- # Which means either curl got a 404 (or the admin) or the sso.
- # A handled url should redirect to a publicly accessible url.
- # Return 1 if the url has returned 404
+ # Return 1 if the URL isn't handled.
+ # Which means either cURL got a 404 (or the admin) or the SSO.
+ # A handled URL should redirect to a publicly accessible URL.
+ # Return 1 if the URL has returned 404
if [ "$http_code" = "404" ] || [[ $redirection =~ "/yunohost/admin" ]]; then
return 1
- # Return 1 if the url is redirected to the SSO
+ # Return 1 if the URL is redirected to the SSO
elif [[ $redirection =~ "/yunohost/sso" ]]; then
return 1
fi
diff --git a/scripts/backup b/scripts/backup
index da8f172..d56a518 100755
--- a/scripts/backup
+++ b/scripts/backup
@@ -28,42 +28,28 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="$data_dir" --is_big
#=================================================
-# BACKUP THE NGINX CONFIGURATION
-#=================================================
-
-ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
-
-#=================================================
-# BACKUP THE PHP-FPM CONFIGURATION
+# SYSTEM CONFIGURATION
#=================================================
+# Backup the PHP-FPM configuration
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
-#=================================================
-# SPECIFIC BACKUP
-#=================================================
-# BACKUP LOGROTATE
-#=================================================
+# Backup the nginx configuration
+ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
+# Backup the logrotate configuration
ynh_backup --src_path="/etc/logrotate.d/$app"
-#=================================================
-# BACKUP FAIL2BAN CONFIGURATION
-#=================================================
-
+# Backup the Fail2Ban config
ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf"
ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf"
#=================================================
-# BACKUP THE CRON FILE
+# BACKUP VARIOUS FILES
#=================================================
ynh_backup --src_path="/etc/cron.d/$app"
-#=================================================
-# BACKUP LOGS
-#=================================================
-
ynh_backup --src_path="/var/log/$app"
#=================================================
diff --git a/scripts/change_url b/scripts/change_url
index 8cadcea..2783932 100644
--- a/scripts/change_url
+++ b/scripts/change_url
@@ -48,7 +48,7 @@ then
# Change hostname for activity notifications
exec_occ config:system:set overwrite.cli.url --value="https://${new_domain}${new_path}"
- # Reload php fpm, necessary for force nextcloud to re-read config.php, cf opcache.revalidate_freq
+ # Reload PHP-FPM, necessary for force Nextcloud to re-read config.php, cf opcache.revalidate_freq
ynh_systemd_action --service_name=php${phpversion}-fpm --action=reload
fi