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

fix : remove log_path

This commit is contained in:
Salamandar 2024-01-19 14:54:54 +01:00
parent 2ff00bab0a
commit ab9cdda49b
2 changed files with 7 additions and 7 deletions

View file

@ -11,8 +11,8 @@ source /usr/share/yunohost/helpers
mkdir -p "$install_dir/public/media" "$install_dir/public/static"
mkdir -p "$install_dir"
mkdir -p "$log_path"
touch "${/var/log/$app/$app.log}"
mkdir -p "/var/log/$app"
touch "/var/log/$app/$app.log"
redis_db=$(ynh_redis_get_free_db)
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
@ -47,11 +47,11 @@ mkdir -p "$install_dir/public/media" "$install_dir/public/static"
chmod o-rwx "$install_dir"
chown -R "$app:www-data" "$install_dir"
mkdir -p "$log_path"
mkdir -p "/var/log/$app"
touch "$log_file"
chmod o-rwx "$log_path"
chown -R "$app:$app" "$log_path"
chmod o-rwx "/var/log/$app"
chown -R "$app:$app" "/var/log/$app"
#=================================================
# copy config files

View file

@ -102,8 +102,8 @@ 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"
ynh_use_logrotate --non-append
chmod o-rwx "$log_path"
chown -R "$app:" "$log_path"
chmod o-rwx "/var/log/$app"
chown -R "$app:" "/var/log/$app"
#=================================================
# Start the app server via systemd