diff --git a/README.md b/README.md
index b4b939b..fd10c0f 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ own data. A personal cloud which runs on your own server. With Nextcloud
 you can synchronize your files over your devices.
 
 
-**Shipped version:** 19.0.3
+**Shipped version:** 19.0.4
 
 ## Screenshots
 
diff --git a/README_fr.md b/README_fr.md
index 404ef69..d9e3dc2 100644
--- a/README_fr.md
+++ b/README_fr.md
@@ -14,7 +14,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
 [Nextcloud](https://nextcloud.com) vous donne la liberté et le contrôle sur vos données. Un nuage personnel qui tourne sur votre serveur.
 Avec NextCloud vous pouvez synchroniser vos fichiers sur vos appareils.
 
-**Version incluse :** 19.0.3
+**Version incluse :** 19.0.4
 
 ## Captures d'écran
 
diff --git a/manifest.json b/manifest.json
index 75aa560..f2746de 100644
--- a/manifest.json
+++ b/manifest.json
@@ -6,7 +6,7 @@
         "en": "Access & share your files, calendars, contacts, mail & more from any device, on your terms",
         "fr": "Consultez et partagez vos fichiers, agendas, carnets d'adresses, emails et bien plus depuis les appareils de votre choix, sous vos conditions"
     },
-    "version": "19.0.3~ynh1",
+    "version": "19.0.4~ynh1",
     "url": "https://nextcloud.com",
     "license": "AGPL-3.0",
     "maintainer": {
diff --git a/scripts/install b/scripts/install
index cfe9d5b..0ad4cde 100755
--- a/scripts/install
+++ b/scripts/install
@@ -273,12 +273,9 @@ exec_occ background:cron
 # POST-INSTALL MAINTENANCE
 #=================================================
 
-(
-    cd $final_path
-    sudo -u $app php${YNH_PHP_VERSION} occ db:add-missing-indices
-    sudo -u $app php${YNH_PHP_VERSION} occ db:add-missing-columns
-    sudo -u $app php${YNH_PHP_VERSION} occ db:convert-filecache-bigint -n
-)
+exec_occ db:add-missing-indices
+exec_occ db:add-missing-columns
+exec_occ db:convert-filecache-bigint -n
 
 #=================================================
 # CONFIGURE THE HOOK FILE FOR USER CREATE
diff --git a/scripts/upgrade b/scripts/upgrade
index 6c76b8f..e3ec094 100755
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -309,12 +309,9 @@ then
         exec_occ -V
     done
 
-    (
-        cd $final_path
-        sudo -u $app php${YNH_PHP_VERSION} occ db:add-missing-indices
-        sudo -u $app php${YNH_PHP_VERSION} occ db:add-missing-columns
-        sudo -u $app php${YNH_PHP_VERSION} occ db:convert-filecache-bigint -n
-    )
+    exec_occ db:add-missing-indices
+    exec_occ db:add-missing-columns
+    exec_occ db:convert-filecache-bigint -n
     
     #=================================================
     # CONFIGURE NEXTCLOUD
diff --git a/scripts/upgrade.d/upgrade.last.sh b/scripts/upgrade.d/upgrade.last.sh
index 569c56e..f05cba2 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="19.0.3"
+# Last available Nextcloud version
+next_version="19.0.4"
 
 # Nextcloud tarball checksum sha256
-nextcloud_source_sha256="fc503985e8aa4ed795d882e35679e0e1b7670181768e7820307222d8b4658969"
+nextcloud_source_sha256="465711715d64cbdf0465fcb4405f23b6f0947b85bbe12b6577c9e1602c63ae78"