From 1b03fc1901ace039b18a58b13bf42a0a584a1a88 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 27 Aug 2023 01:09:45 +0200 Subject: [PATCH] Reinstall NodeJS upon restore --- scripts/restore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/restore b/scripts/restore index 33dc88d..35cf924 100755 --- a/scripts/restore +++ b/scripts/restore @@ -17,6 +17,13 @@ source /usr/share/yunohost/helpers # Testing if ZeroTier is installed yunohost app list | grep -q "id: zerotier" || ynh_die "ZeroTier is needed, but it is not installed. Restore its backup first, otherwise there is a package for that, then perform a force-upgrade of ZeroUI." +#================================================= +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=2 + +ynh_install_nodejs --nodejs_version=$nodejs_version + #================================================= # RESTORE THE APP MAIN DIR #=================================================