mirror of
https://github.com/YunoHost-Apps/django-fmd_ynh.git
synced 2024-09-03 18:26:27 +02:00
fixes
This commit is contained in:
parent
af036b8461
commit
ff321e548b
3 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ chmod o-rwx "$install_dir"
|
||||||
chown -R "$app:www-data" "$install_dir"
|
chown -R "$app:www-data" "$install_dir"
|
||||||
|
|
||||||
mkdir -p "/var/log/$app"
|
mkdir -p "/var/log/$app"
|
||||||
touch "$log_file"
|
touch "/var/log/$app/$app.log"
|
||||||
|
|
||||||
chmod o-rwx "/var/log/$app"
|
chmod o-rwx "/var/log/$app"
|
||||||
chown -R "$app:$app" "/var/log/$app"
|
chown -R "$app:$app" "/var/log/$app"
|
||||||
|
@ -99,7 +99,7 @@ ynh_script_progression --message="Adding system configurations related to $app..
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config --service="$app" --template="systemd.service"
|
ynh_add_systemd_config --service="$app" --description="$app service" --template="systemd.service"
|
||||||
yunohost service add "$app" --log="/var/log/$app/$app.log"
|
yunohost service add "$app" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
# Use logrotate to manage app-specific logfile(s)
|
# Use logrotate to manage app-specific logfile(s)
|
||||||
|
|
|
@ -42,7 +42,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable "$app.service" --quiet
|
systemctl enable "$app.service" --quiet
|
||||||
yunohost service add "$app" --description="Digital signage system for high schools" --log="/var/log/$app/$app.log"
|
yunohost service add "$app" --description="$app service" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ ynh_script_progression --message="Upgrading system configurations related to $ap
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
ynh_add_systemd_config --service="$app" --template="systemd.service"
|
ynh_add_systemd_config --service="$app" --template="systemd.service"
|
||||||
yunohost service add "$app" --description="Digital signage system for high schools" --log="/var/log/$app/$app.log"
|
yunohost service add "$app" --description="$app service" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
ynh_use_logrotate --non-append
|
ynh_use_logrotate --non-append
|
||||||
chmod o-rwx "/var/log/$app"
|
chmod o-rwx "/var/log/$app"
|
||||||
|
|
Loading…
Reference in a new issue