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:
parent
bebf990e1b
commit
d1ad0c07a7
3 changed files with 7 additions and 0 deletions
|
@ -172,6 +172,7 @@ ynh_install_nodejs 8
|
||||||
|
|
||||||
chown -R $app:$app $final_path
|
chown -R $app:$app $final_path
|
||||||
|
|
||||||
|
mkdir /var/log/$app
|
||||||
chown -R $app:$app /var/log/$app
|
chown -R $app:$app /var/log/$app
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
|
|
|
@ -76,6 +76,7 @@ ynh_system_user_create $app
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R $app:$app $final_path
|
chown -R $app:$app $final_path
|
||||||
|
|
||||||
|
mkdir /var/log/$app
|
||||||
chown -R $app:$app /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 php5-fpm
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
systemctl start $app
|
||||||
|
|
|
@ -74,6 +74,8 @@ path_url=$(ynh_normalize_url_path $path_url)
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
systemctl stop $app
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src#
|
# Download, check integrity, uncompress and patch the source from app.src#
|
||||||
ynh_setup_source "$final_path"
|
ynh_setup_source "$final_path"
|
||||||
|
|
||||||
|
@ -145,6 +147,7 @@ ynh_add_systemd_config
|
||||||
#chown -R root: $final_path
|
#chown -R root: $final_path
|
||||||
chown -R $app:$app $final_path
|
chown -R $app:$app $final_path
|
||||||
|
|
||||||
|
mkdir /var/log/$app
|
||||||
chown -R $app:$app /var/log/$app
|
chown -R $app:$app /var/log/$app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -163,3 +166,4 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
systemctl start $app
|
||||||
|
|
Loading…
Reference in a new issue