1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mongo-express_ynh.git synced 2024-09-03 19:46:04 +02:00
This commit is contained in:
ericgaspar 2024-01-13 14:13:24 +01:00
parent 5b0b3f5909
commit 0302c6aa41
4 changed files with 3 additions and 7 deletions

View file

@ -3,6 +3,7 @@
#=================================================
# COMMON VARIABLES
#=================================================
nodejs_version=16
#=================================================

View file

@ -16,7 +16,6 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Installing NodeJS..." --weight=3
ynh_install_nodejs --nodejs_version="$nodejs_version"
ynh_use_nodejs
# Install mongo server only if asked to
if [ "$mongo_version" != "None" ]; then
@ -51,6 +50,7 @@ ynh_script_progression --message="Building NodeJS code and dependencies..." --we
# Install Nodejs dependencies
pushd "$install_dir"
ynh_use_nodejs
ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install
popd

View file

@ -22,11 +22,6 @@ if ynh_exec_warn_less yunohost service status $app >/dev/null; then
yunohost service remove "$app"
fi
#=================================================
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the dedicated systemd config
ynh_remove_systemd_config

View file

@ -25,7 +25,6 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a
ynh_script_progression --message="Installing NodeJS..." --weight=3
ynh_install_nodejs --nodejs_version="$nodejs_version"
ynh_use_nodejs
# Install mongo server only if asked to
if [ "$mongo_version" != "None" ]; then
@ -60,6 +59,7 @@ ynh_script_progression --message="Building NodeJS code and dependencies..." --we
# Install Nodejs dependencies
pushd "$install_dir"
ynh_use_nodejs
ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install
popd