mirror of
https://github.com/YunoHost-Apps/tiddlywiki_ynh.git
synced 2024-09-03 20:26:34 +02:00
update
This commit is contained in:
parent
cd29491287
commit
4e94931299
3 changed files with 12 additions and 10 deletions
|
@ -4,7 +4,9 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
nodejs_version=14
|
||||
nodejs_version="14"
|
||||
|
||||
tiddlywiki_version="5.2.2"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
|
|
|
@ -99,7 +99,7 @@ ynh_script_progression --message="Configuring TiddlyWiki..." --weight=2
|
|||
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
npm -g install tiddlywiki
|
||||
npm -g install tiddlywiki@${tiddlywiki_version}
|
||||
ynh_exec_as $app env $ynh_node_load_PATH tiddlywiki mynewwiki --init server
|
||||
popd
|
||||
|
||||
|
|
|
@ -69,6 +69,13 @@ ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
|||
|
||||
ynh_systemd_action --service_name=$app --action=stop
|
||||
|
||||
#=================================================
|
||||
# UPGRADE DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading dependencies..." --weight=1
|
||||
|
||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
#=================================================
|
||||
# CREATE DEDICATED USER
|
||||
#=================================================
|
||||
|
@ -87,7 +94,7 @@ then
|
|||
|
||||
pushd $final_path
|
||||
ynh_use_nodejs
|
||||
npm update -g tiddlywiki
|
||||
npm update -g tiddlywiki@${tiddlywiki_version}
|
||||
popd
|
||||
fi
|
||||
|
||||
|
@ -103,13 +110,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
|
|||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config
|
||||
|
||||
#=================================================
|
||||
# UPGRADE DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading dependencies..." --weight=1
|
||||
|
||||
ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue