1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/scrumblr_ynh.git synced 2024-09-03 20:16:29 +02:00
This commit is contained in:
Éric Gaspar 2023-12-27 10:55:21 +01:00
parent a87cd8cce5
commit 32e7b4ff1b
3 changed files with 11 additions and 5 deletions

View file

@ -66,7 +66,7 @@ popd
ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Server running at "
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Server running at "
#=================================================
# END OF SCRIPT

View file

@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
if ynh_exec_warn_less yunohost service status $app >/dev/null
then

View file

@ -27,12 +27,19 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
if $(ynh_compare_current_package_version --comparison gt --version "0.2.0~ynh1")
then
pushd $install_dir
redis-cli --rdb "/tmp/redis-$app.rdb" -p $redis_port
redis-cli --rdb "/tmp/redis-$app.rdb" -p $port_redis
popd
ynh_systemd_action --service_name=redis-$app --action="stop" --log_path="/var/log/$app/redis-$app.log"
fi
#=================================================
# INSTALL NODEJS
#=================================================
ynh_script_progression --message="Installing dependencies..." --weight=5
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
@ -95,8 +102,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
# Create a dedicated NGINX config
ynh_add_nginx_config
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_add_systemd_config
# Use logrotate to manage app-specific logfile(s)
@ -112,7 +117,7 @@ yunohost service add $app --description="Software for notes" --log="/var/log/$ap
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Server running at"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Server running at"
#=================================================
# END OF SCRIPT