From 7a7997fa744c0e93077fd9e46a12c1c8081146ff Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Mon, 27 May 2024 14:05:49 -0500 Subject: [PATCH 1/2] Update upgrade Fix permission for logfile (chmod & chown) --- scripts/upgrade | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9af6cde..813b29e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -91,16 +91,32 @@ ynh_store_file_checksum --file="/etc/matrix-$synapse_instance/app-service/$app.y ynh_store_file_checksum --file="$install_dir/config.yaml" #================================================= -# REAPPLY SYSTEM CONFIGURATIONS +# SETUP SYSTEMD #================================================= ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 # Create a dedicated systemd config ynh_add_systemd_config -yunohost service add "$app" --description="$app daemon for bridging Signal and Matrix messages" --log="/var/log/$app/$app.log" + +#================================================= +# GENERIC FINALIZATION +#================================================= +# SETUP LOGROTATE +#================================================= +ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1 # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --logfile "/var/log/$app/$app.log" --nonappend --specific_user $app/$app +chmod -R 600 "/var/log/$app" +chmod 700 "/var/log/$app" +chown -R $app:$app /var/log/$app + +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= +ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 + +yunohost service add "$app" --description="$app daemon for bridging Signal and Matrix messages" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE From abe12a0b4b65bf0a4b97b31c5ad13d28a4a294bb Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sat, 8 Jun 2024 18:29:30 +0000 Subject: [PATCH 2/2] Auto-update READMEs --- ALL_README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ALL_README.md b/ALL_README.md index 8938aae..152f2e7 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -1,7 +1,7 @@ # All available README files by language - [Read the README in English](README.md) -- [Lee el README en español](README_es.md) +- [Lea el README en español](README_es.md) - [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md)