mirror of
https://github.com/YunoHost-Apps/bonfire_ynh.git
synced 2024-09-03 18:16:01 +02:00
create log folder
This commit is contained in:
parent
db02fe0de7
commit
4a325a5031
1 changed files with 6 additions and 1 deletions
|
@ -94,12 +94,17 @@ release_folder="_build/prod/rel/bonfire"
|
|||
#ynh_script_progression --message="Starting Bonfire..." --weight=1
|
||||
#ynh_exec_warn_less ynh_exec_as $app -s $SHELL -lc "WITH_DOCKER=no just cmd $release_folder/bin/bonfire start"
|
||||
|
||||
mkdir -p "/var/log/$app"
|
||||
chown -R $app:$app "/var/log/$app"
|
||||
|
||||
# Use logrotate to manage application logfile(s)
|
||||
ynh_use_logrotate
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
||||
yunohost service add $app --description="Bonfire daemon" --log="/var/log/$app/$app.log"
|
||||
|
||||
|
||||
ynh_script_progression --message="Starting Bonfire daemon service..." --weight=1
|
||||
|
||||
# Start a systemd service
|
||||
|
|
Loading…
Add table
Reference in a new issue