mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
fix variable
This commit is contained in:
parent
4ff1d80e34
commit
98e8d51561
3 changed files with 9 additions and 9 deletions
|
@ -18,7 +18,7 @@ ynh_script_progression --message="Configuring logrotate to manage application lo
|
||||||
# Use logrotate to manage application logfile(s)
|
# Use logrotate to manage application logfile(s)
|
||||||
ynh_use_logrotate --specific_user=$app
|
ynh_use_logrotate --specific_user=$app
|
||||||
touch /var/log/$app/$app.log
|
touch /var/log/$app/$app.log
|
||||||
touch /var/log/$app/$app_workers.log
|
touch /var/log/$app/${app}_workers.log
|
||||||
chown -R $app:www-data /var/log/$app/
|
chown -R $app:www-data /var/log/$app/
|
||||||
|
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ ynh_add_systemd_config --service="${app}_workers" --template="fittrackee_workers
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
||||||
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/$app_workers.log"
|
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -108,7 +108,7 @@ ynh_script_progression --message="Starting the systemd services..." --weight=15
|
||||||
|
|
||||||
# Start a systemd service
|
# Start a systemd service
|
||||||
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
|
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
|
||||||
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="/var/log/$app/$app_workers.log" --line_match="Started"
|
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="/var/log/$app/${app}_workers.log" --line_match="Started"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
|
@ -22,7 +22,7 @@ ynh_script_progression --message="Configuring logrotate to manage application lo
|
||||||
# Use logrotate to manage application logfile(s)
|
# Use logrotate to manage application logfile(s)
|
||||||
ynh_use_logrotate --specific_user=$app
|
ynh_use_logrotate --specific_user=$app
|
||||||
touch /var/log/$app/$app.log
|
touch /var/log/$app/$app.log
|
||||||
touch /var/log/$app/$app_workers.log
|
touch /var/log/$app/${app}_workers.log
|
||||||
chown -R $app:www-data /var/log/$app/
|
chown -R $app:www-data /var/log/$app/
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -67,7 +67,7 @@ systemctl enable "${app}_workers.service" --quiet
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
||||||
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/$app_workers.log"
|
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
@ -75,7 +75,7 @@ yunohost service add "${app}_workers" --description="Fittrackee task queue servi
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
|
|
||||||
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
|
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
|
||||||
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="/var/log/$app/$app_workers.log" --line_match="Started"
|
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="/var/log/$app/${app}_workers.log" --line_match="Started"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -29,7 +29,7 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
||||||
|
|
||||||
ynh_systemd_action --action="stop" --service_name="${app}" --log_path="/var/log/$app/$app.log" --line_match="Stopped"
|
ynh_systemd_action --action="stop" --service_name="${app}" --log_path="/var/log/$app/$app.log" --line_match="Stopped"
|
||||||
ynh_systemd_action --action="stop" --service_name="${app}_workers" --log_path="/var/log/$app/$app_workers.log" --line_match="Stopped"
|
ynh_systemd_action --action="stop" --service_name="${app}_workers" --log_path="/var/log/$app/${app}_workers.log" --line_match="Stopped"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
|
@ -90,7 +90,7 @@ ynh_add_systemd_config --service="${app}_workers" --template="fittrackee_workers
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||||
|
|
||||||
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
yunohost service add "${app}" --description="Fittrackee main service" --log="/var/log/$app/$app.log"
|
||||||
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/$app_workers.log"
|
yunohost service add "${app}_workers" --description="Fittrackee task queue service" --log="var/log/$app/${app}_workers.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
@ -99,7 +99,7 @@ ynh_script_progression --message="Starting the systemd services..." --weight=15
|
||||||
|
|
||||||
# Start a systemd service
|
# Start a systemd service
|
||||||
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
|
ynh_systemd_action --service_name="${app}" --action="start" --log_path="/var/log/$app/$app.log" --line_match="Booting worker with pid"
|
||||||
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="/var/log/$app/$app_workers.log" --line_match="Started"
|
ynh_systemd_action --service_name="${app}_workers" --action="start" --log_path="/var/log/$app/${app}_workers.log" --line_match="Started"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Reference in a new issue