1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/facilmap_ynh.git synced 2024-09-03 18:36:07 +02:00
This commit is contained in:
ericgaspar 2021-06-26 21:55:15 +02:00
parent 9c7268233f
commit 33c247610a
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 11 additions and 9 deletions

View file

@ -164,7 +164,7 @@ ynh_use_logrotate
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Collaborative maps and routing with a straightforward interface" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Collaborative maps and routing" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE

View file

@ -104,7 +104,7 @@ systemctl enable $app.service --quiet
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Collaborative maps and routing with a straightforward interface" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Collaborative maps and routing" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE

View file

@ -102,13 +102,15 @@ ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
# BUILD NODE DEPENDENCIES
#=================================================
ynh_script_progression --message="Building node dependencies..." --weight=20
ynh_script_progression --message="Install $app..." --weight=20
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
chown -R $app $final_path
pushd "$final_path"
ynh_exec_as "$app" "$ynh_node_load_PATH" "$ynh_npm" install --prefix "$final_path" -g facilmap-server@"$facilmap_version" 2>/dev/null
pushd $final_path
ynh_exec_as $app "$ynh_node_load_PATH" $ynh_npm install --prefix "$final_path" -g facilmap-server@"$facilmap_version" 2>/dev/null
popd
fi
#=================================================
# SETUP SYSTEMD
@ -151,7 +153,7 @@ ynh_use_logrotate --non-append
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="Collaborative maps and routing with a straightforward interface" --log="/var/log/$app/$app.log"
yunohost service add $app --description="Collaborative maps and routing" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE