mirror of
https://github.com/YunoHost-Apps/distbin_ynh.git
synced 2024-09-03 18:26:10 +02:00
Fix Service logs
This commit is contained in:
parent
8cf811c38b
commit
11b5ddeba8
2 changed files with 15 additions and 4 deletions
|
@ -168,11 +168,15 @@ ynh_system_user_create "$app" "$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC SETUP
|
# SPECIFIC SETUP
|
||||||
#=================================================
|
#=================================================
|
||||||
# ...
|
# CREATE LOG FOLDER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
mkdir -p /var/log/$app
|
mkdir -p "/var/log/$app"
|
||||||
chown -R $app:$app /var/log/$app
|
chown -R "$app":"$app" "/var/log/$app"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# MAKE SETUP
|
||||||
|
#=================================================
|
||||||
|
|
||||||
chown -R "$app":"$app" "$final_path"
|
chown -R "$app":"$app" "$final_path"
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
|
@ -318,4 +322,4 @@ systemctl reload nginx
|
||||||
# START SERVICE
|
# START SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_systemd_action --action=start --service_name=$app --line_match="Started Distbin Service" --log_path=/var/log/syslog
|
ynh_systemd_action --action=start --service_name=$app
|
||||||
|
|
|
@ -131,6 +131,13 @@ ynh_restore_file "/etc/logrotate.d/$app"
|
||||||
#systemctl reload php5-fpm
|
#systemctl reload php5-fpm
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# CREATE LOG FOLDER
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
mkdir -p "/var/log/$app"
|
||||||
|
chown -R "$app":"$app" "/var/log/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SERVICE
|
# START SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue