From 973d471ded59c38f295e70d119a14a1f4bd5b5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 14 Jul 2024 13:48:07 +0200 Subject: [PATCH] Restore: fix missing locale gen --- scripts/restore | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/restore b/scripts/restore index 39c8a70..6fd1b41 100755 --- a/scripts/restore +++ b/scripts/restore @@ -8,6 +8,21 @@ source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers +#================================================= +# INSTALL NODEJS +#================================================= +ynh_script_progression --message="Installing NodeJS..." --weight=1 + +ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version" + +#================================================= +# ENABLE MANDATORY FRENCH LOCALE +#================================================= +ynh_script_progression --message="Enabling french system locale..." --weight=1 + +sed -i 's|^#\? \?\(fr_FR.UTF-8 \?.*\)$|\1|' /etc/locale.gen +locale-gen + #================================================= # RESTORE THE APP MAIN DIR #=================================================