mirror of
https://github.com/YunoHost-Apps/mstream_ynh.git
synced 2024-09-03 19:46:17 +02:00
fix
This commit is contained in:
parent
61976c0c30
commit
163113cf46
5 changed files with 23 additions and 3 deletions
|
@ -9,7 +9,7 @@ Group=__APP__
|
|||
Environment=NODE_PORT=__PORT__
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
Environment="PATH=__ENV_PATH__"
|
||||
ExecStart=__YNH_NODE__ __INSTALL_DIR__/mStream/cli-boot-wrapper.js
|
||||
ExecStart=__YNH_NODE__ __INSTALL_DIR__/cli-boot-wrapper.js
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -32,7 +32,6 @@ ynh_setup_source --dest_dir="$install_dir"
|
|||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
chmod +x "$install_dir/mStream.AppImage"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
@ -59,7 +58,7 @@ ynh_script_progression --message="Configuring the app..." --weight=10
|
|||
|
||||
pushd $install_dir
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less $ynh_npm run-script wizard
|
||||
ynh_exec_warn_less $ynh_npm install --only=prod
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -38,6 +38,13 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
|
|||
# Remove the dedicated NGINX config
|
||||
ynh_remove_nginx_config
|
||||
|
||||
#=================================================
|
||||
# REMOVE DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing dependencies..." --weight=1
|
||||
|
||||
ynh_remove_nodejs
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -29,6 +29,13 @@ ynh_restore_file --origin_path="$install_dir"
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# REINSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
|
||||
|
||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
#=================================================
|
||||
# RESTORE THE DATA DIRECTORY
|
||||
#=================================================
|
||||
|
|
|
@ -39,6 +39,13 @@ fi
|
|||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# UPGRADE DEPENDENCIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading dependencies..." --weight=1
|
||||
|
||||
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue