diff --git a/README_fr.md b/README_fr.md
index 5a7ae78..2071a61 100644
--- a/README_fr.md
+++ b/README_fr.md
@@ -27,7 +27,7 @@ Chitchatter est un outil de communication gratuit (comme dans le prix et la libe
- Éphémère
- Décentralisé
-**Version incluse :** 1.0~ynh11
+**Version incluse :** 1.0~ynh11
**Démo :**
@@ -54,4 +54,4 @@ ou
sudo yunohost app upgrade chitchatter -u https://github.com/YunoHost-Apps/chitchatter_ynh/tree/testing --debug
```
-**Plus d’infos sur le packaging d’applications :**
+**Plus d’infos sur le packaging d’applications :**
diff --git a/scripts/_common.sh b/scripts/_common.sh
index c9b5a6d..b403ad5 100644
--- a/scripts/_common.sh
+++ b/scripts/_common.sh
@@ -7,8 +7,8 @@
#=================================================
# nodejs version
-nodejs_version=20
-version_commit=fcf9fcea52d1e09d689ed6998d729aa8d08be604
+nodejs_version=18
+version_commit=94a4b2fb2e2ffad7b2fb04a78257a6dac4e7095a
#=================================================
# PERSONAL HELPERS
diff --git a/scripts/install b/scripts/install
index 7163eeb..dfd9369 100755
--- a/scripts/install
+++ b/scripts/install
@@ -33,9 +33,6 @@ pushd "$install_dir"
git reset --hard --quiet $version_commit
popd
-chmod -R o-rwx "$install_dir"
-chown -R $app:www-data "$install_dir"
-
#=================================================
# NGINX CONFIGURATION
#=================================================
@@ -56,6 +53,9 @@ pushd $install_dir
ynh_exec_warn_less $ynh_npm run build
popd
+chmod -R o-rwx "$install_dir"
+chown -R $app:www-data "$install_dir"
+
#=================================================
# END OF SCRIPT
#=================================================
diff --git a/scripts/upgrade b/scripts/upgrade
index 4e43242..0da44f7 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -23,9 +23,6 @@ pushd $install_dir
ynh_exec_as $app git pull
popd
-chmod -R o-rwx "$install_dir"
-chown -R $app:www-data "$install_dir"
-
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
@@ -53,6 +50,9 @@ pushd $install_dir
ynh_exec_warn_less $ynh_npm run build
popd
+chmod -R o-rwx "$install_dir"
+chown -R $app:www-data "$install_dir"
+
#=================================================
# END OF SCRIPT
#=================================================