From b37e63ce9d1600bea0ac8a08053da8c65be1fc7f Mon Sep 17 00:00:00 2001 From: Hadrien Date: Wed, 15 Sep 2021 14:08:17 +0200 Subject: [PATCH 01/11] typo: `$domain` not defined in `scripts/change_url` --- scripts/change_url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index f4f54a2..e4e3696 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -117,9 +117,9 @@ fi if [ $change_domain -eq 1 ] then # Check if .well-known is available for this domain - if is_url_handled --domain="$domain" --path="/.well-known/caldav" || is_url_handled --domain="$domain" --path="/.well-known/carddav" + if is_url_handled --domain="$new_domain" --path="/.well-known/caldav" || is_url_handled --domain="$new_domain" --path="/.well-known/carddav" then - ynh_print_warn --message="Another app already uses the domain $domain to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book." + ynh_print_warn --message="Another app already uses the domain $new_domain to serve a caldav/carddav feature. You may encounter issues when dealing with your calendar or address book." # Remove lines about .well-known/carddav and caldav with sed. sed --in-place --regexp-extended '/location = \/\.well\-known\/(caldav|carddav)/d' "/etc/nginx/conf.d/$new_domain.d/$app.conf" From a688776db374258c0db9f864c523e0b0af5967e1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 30 Sep 2021 22:51:47 +0200 Subject: [PATCH 02/11] Upgrade to 22.2.0 --- manifest.json | 8 +++----- scripts/upgrade.d/upgrade.last.sh | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index c96f962..828abd9 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Online storage, file sharing platform and various other applications", "fr": "Stockage en ligne, plateforme de partage de fichiers et diverses autres applications" }, - "version": "22.1.1~ynh1", + "version": "22.2.0~ynh1", "url": "https://nextcloud.com", "upstream": { "license": "AGPL-3.0", @@ -34,8 +34,7 @@ "install" : [ { "name": "domain", - "type": "domain", - "example": "domain.org" + "type": "domain" }, { "name": "path", @@ -45,8 +44,7 @@ }, { "name": "admin", - "type": "user", - "example": "homer" + "type": "user" }, { "name": "is_public", diff --git a/scripts/upgrade.d/upgrade.last.sh b/scripts/upgrade.d/upgrade.last.sh index 607191e..089cab2 100755 --- a/scripts/upgrade.d/upgrade.last.sh +++ b/scripts/upgrade.d/upgrade.last.sh @@ -1,7 +1,7 @@ #!/bin/bash # Last available Nextcloud version -next_version="22.1.1" +next_version="22.2.0" # Nextcloud tarball checksum sha256 -nextcloud_source_sha256="e55b6eb977fb539081e33a7d8f196e38430eb337cc76bf0379a663a497fbde5b" +nextcloud_source_sha256="273dba3ce43501b897e8b78996b50329e31da2b5402866ac20b318cdaddf3e1f" From 63c24acdb353a42db95369887028ba38e34e9e8a Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Thu, 30 Sep 2021 20:51:53 +0000 Subject: [PATCH 03/11] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ba411b3..c95115f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Online storage, file sharing platform and various other applications -**Shipped version:** 22.1.1~ynh1 +**Shipped version:** 22.2.0~ynh1 **Demo:** https://demo.nextcloud.com/ diff --git a/README_fr.md b/README_fr.md index 63bea64..54224bd 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Stockage en ligne, plateforme de partage de fichiers et diverses autres applications -**Version incluse :** 22.1.1~ynh1 +**Version incluse :** 22.2.0~ynh1 **Démo :** https://demo.nextcloud.com/ From 050dc891af6fb6e59e980c7a33786277433511f8 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 1 Oct 2021 04:23:48 +0200 Subject: [PATCH 04/11] Fix final_dir perms --- scripts/install | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install b/scripts/install index c36b120..357f19d 100755 --- a/scripts/install +++ b/scripts/install @@ -312,6 +312,7 @@ find $datadir/ -type f -print0 | xargs -0 chmod 0640 find $datadir/ -type d -print0 | xargs -0 chmod 0750 chmod 640 "$final_path/config/config.php" chmod 755 /home/yunohost.app +chmod 750 $fina_path #================================================= # SETUP LOGROTATE From 20815ed7f296a6326037b3ac8b2a6facb4d2ecf3 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 1 Oct 2021 04:24:53 +0200 Subject: [PATCH 05/11] Fix final_path perms --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 357f19d..be38b06 100755 --- a/scripts/install +++ b/scripts/install @@ -312,7 +312,7 @@ find $datadir/ -type f -print0 | xargs -0 chmod 0640 find $datadir/ -type d -print0 | xargs -0 chmod 0750 chmod 640 "$final_path/config/config.php" chmod 755 /home/yunohost.app -chmod 750 $fina_path +chmod 750 $final_path #================================================= # SETUP LOGROTATE From 4dd63b7c0b7bbb78ab829f2784dfa677b8d93f69 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 1 Oct 2021 04:25:52 +0200 Subject: [PATCH 06/11] Fix final_path perms --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 8968143..f03387a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -431,6 +431,7 @@ find $datadir/ -type f -print0 | xargs -0 chmod 0640 find $datadir/ -type d -print0 | xargs -0 chmod 0750 chmod 640 "$final_path/config/config.php" chmod 755 /home/yunohost.app +chmod 750 $final_path #================================================= # WARNING ABOUT THIRD-PARTY APPS From 9aaa75b9c45d2952498382056c555c9eb6717107 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 1 Oct 2021 04:26:23 +0200 Subject: [PATCH 07/11] Fix final_path perms --- scripts/restore | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/restore b/scripts/restore index 0449f5b..e76ab8d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -138,6 +138,7 @@ find $datadir/ -type f -print0 | xargs -0 chmod 0640 find $datadir/ -type d -print0 | xargs -0 chmod 0750 chmod 640 "$final_path/config/config.php" chmod 755 /home/yunohost.app +chmod 750 $final_path # Iterate over users to extend their home folder permissions - for the external # storage plugin usage - and create relevant Nextcloud directories From fa37740bed81469f85dcf34a2ba45797658cc0db Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 1 Oct 2021 21:02:29 +0200 Subject: [PATCH 08/11] Update check_process --- check_process | 4 ---- 1 file changed, 4 deletions(-) diff --git a/check_process b/check_process index 7ac5c52..ea81cc6 100644 --- a/check_process +++ b/check_process @@ -13,8 +13,6 @@ setup_private=1 setup_public=1 upgrade=1 - #19.0.3 - upgrade=1 from_commit=a03e25fac417e2e03e53ed3a7b7ed05185637360 #21.0.2 upgrade=1 from_commit=fa1f0da48d3edbdf5bcb3b8b70a0687b4e878d11 backup_restore=1 @@ -26,8 +24,6 @@ Email= Notification=none ;;; Upgrade options - ; commit=a03e25fac417e2e03e53ed3a7b7ed05185637360 - name=Merge pull request #333 from ericgaspar/Upgrade-to-version-19.0.3 ; commit=fa1f0da48d3edbdf5bcb3b8b70a0687b4e878d11 name=Merge pull request #408 from YunoHost-Apps/21.0.2 manifest_arg=domain=DOMAIN&path=PATH&admin=USER&user_home=1& From 40e6564a32b76e79e3941e0b803157f910b2851f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 10 Oct 2021 15:25:46 +0200 Subject: [PATCH 09/11] www-data needs access to $final_path --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index be38b06..8306846 100755 --- a/scripts/install +++ b/scripts/install @@ -305,7 +305,8 @@ ynh_multimedia_addaccess $app #================================================= # Fix app ownerships & permissions -chown -R $app: "$final_path" "$datadir" +chown -R $app:www-data "$final_path" +chown -R $app: "$datadir" find $final_path/ -type f -print0 | xargs -0 chmod 0644 find $final_path/ -type d -print0 | xargs -0 chmod 0755 find $datadir/ -type f -print0 | xargs -0 chmod 0640 From 3df321beb13c24817f29708f5d5a15d59c91ca2a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 10 Oct 2021 15:26:31 +0200 Subject: [PATCH 10/11] www-data needs access to final_path --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index f03387a..8dfdcea 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -424,7 +424,8 @@ exec_occ background:cron #================================================= # Fix app ownerships & permissions -chown -R $app: "$final_path" "$datadir" +chown -R $app:www-data "$final_path" +chown -R $app: "$datadir" find $final_path/ -type f -print0 | xargs -0 chmod 0644 find $final_path/ -type d -print0 | xargs -0 chmod 0755 find $datadir/ -type f -print0 | xargs -0 chmod 0640 From aceada3fb9607a0216806504989c3a70b30ce37e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 10 Oct 2021 15:27:04 +0200 Subject: [PATCH 11/11] www-data needs access to final_path --- scripts/restore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index e76ab8d..a3067d4 100755 --- a/scripts/restore +++ b/scripts/restore @@ -131,7 +131,8 @@ mkdir -p "$datadir" #================================================= # Fix app ownerships & permissions -chown -R $app: "$final_path" "$datadir" +chown -R $app:www-data "$final_path" +chown -R $app: "$datadir" find $final_path/ -type f -print0 | xargs -0 chmod 0644 find $final_path/ -type d -print0 | xargs -0 chmod 0755 find $datadir/ -type f -print0 | xargs -0 chmod 0640