1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

Fix Log directory

This commit is contained in:
Yalh 2019-01-29 02:13:00 +01:00
parent bebf990e1b
commit d1ad0c07a7
3 changed files with 7 additions and 0 deletions

View file

@ -172,6 +172,7 @@ ynh_install_nodejs 8
chown -R $app:$app $final_path
mkdir /var/log/$app
chown -R $app:$app /var/log/$app
pushd $final_path

View file

@ -76,6 +76,7 @@ ynh_system_user_create $app
# Restore permissions on app files
chown -R $app:$app $final_path
mkdir /var/log/$app
chown -R $app:$app /var/log/$app
#=================================================
@ -131,3 +132,4 @@ ynh_restore_file "/etc/logrotate.d/$app"
#systemctl reload php5-fpm
systemctl reload nginx
systemctl start $app

View file

@ -74,6 +74,8 @@ path_url=$(ynh_normalize_url_path $path_url)
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
systemctl stop $app
# Download, check integrity, uncompress and patch the source from app.src#
ynh_setup_source "$final_path"
@ -145,6 +147,7 @@ ynh_add_systemd_config
#chown -R root: $final_path
chown -R $app:$app $final_path
mkdir /var/log/$app
chown -R $app:$app /var/log/$app
#=================================================
@ -163,3 +166,4 @@ fi
#=================================================
systemctl reload nginx
systemctl start $app