mirror of
https://github.com/YunoHost-Apps/mongo-express_ynh.git
synced 2024-09-03 19:46:04 +02:00
cleaning
This commit is contained in:
parent
5b0b3f5909
commit
0302c6aa41
4 changed files with 3 additions and 7 deletions
|
@ -3,6 +3,7 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
nodejs_version=16
|
nodejs_version=16
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -16,7 +16,6 @@ source /usr/share/yunohost/helpers
|
||||||
ynh_script_progression --message="Installing NodeJS..." --weight=3
|
ynh_script_progression --message="Installing NodeJS..." --weight=3
|
||||||
|
|
||||||
ynh_install_nodejs --nodejs_version="$nodejs_version"
|
ynh_install_nodejs --nodejs_version="$nodejs_version"
|
||||||
ynh_use_nodejs
|
|
||||||
|
|
||||||
# Install mongo server only if asked to
|
# Install mongo server only if asked to
|
||||||
if [ "$mongo_version" != "None" ]; then
|
if [ "$mongo_version" != "None" ]; then
|
||||||
|
@ -51,6 +50,7 @@ ynh_script_progression --message="Building NodeJS code and dependencies..." --we
|
||||||
|
|
||||||
# Install Nodejs dependencies
|
# Install Nodejs dependencies
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
|
ynh_use_nodejs
|
||||||
ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install
|
ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,6 @@ if ynh_exec_warn_less yunohost service status $app >/dev/null; then
|
||||||
yunohost service remove "$app"
|
yunohost service remove "$app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE SYSTEM CONFIGURATIONS
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
|
||||||
|
|
||||||
# Remove the dedicated systemd config
|
# Remove the dedicated systemd config
|
||||||
ynh_remove_systemd_config
|
ynh_remove_systemd_config
|
||||||
|
|
||||||
|
|
|
@ -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_script_progression --message="Installing NodeJS..." --weight=3
|
||||||
|
|
||||||
ynh_install_nodejs --nodejs_version="$nodejs_version"
|
ynh_install_nodejs --nodejs_version="$nodejs_version"
|
||||||
ynh_use_nodejs
|
|
||||||
|
|
||||||
# Install mongo server only if asked to
|
# Install mongo server only if asked to
|
||||||
if [ "$mongo_version" != "None" ]; then
|
if [ "$mongo_version" != "None" ]; then
|
||||||
|
@ -60,6 +59,7 @@ ynh_script_progression --message="Building NodeJS code and dependencies..." --we
|
||||||
|
|
||||||
# Install Nodejs dependencies
|
# Install Nodejs dependencies
|
||||||
pushd "$install_dir"
|
pushd "$install_dir"
|
||||||
|
ynh_use_nodejs
|
||||||
ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install
|
ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue