From d54fccb4df0b62a99f904421f85c0f2904f539cf Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 28 Jan 2024 05:57:48 +0100 Subject: [PATCH] add the user to the 'ssl-cert' group --- scripts/install | 8 ++++++++ scripts/restore | 8 ++++++++ scripts/upgrade | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/scripts/install b/scripts/install index 3147d5a..2ccdfb4 100755 --- a/scripts/install +++ b/scripts/install @@ -97,6 +97,14 @@ ynh_script_progression --message="Configuring log rotation..." --weight=2 # Use logrotate to manage application logfile(s) ynh_use_logrotate +#================================================= +# SPECIFIC SETUP +#================================================= + +# adding the ergo dedicated user to the 'ssl-cert' group +# to permit the use of the Let's Encrypt certs +usermod -a -G ssl-cert "$app" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= diff --git a/scripts/restore b/scripts/restore index accd2d3..ca0cf91 100755 --- a/scripts/restore +++ b/scripts/restore @@ -56,6 +56,14 @@ systemctl enable $app.service --quiet ynh_restore_file --origin_path="/etc/logrotate.d/$app" +#================================================= +# SPECIFIC SETUP +#================================================= + +# adding the ergo dedicated user to the 'ssl-cert' group +# to permit the use of the Let's Encrypt certs +usermod -a -G ssl-cert "$app" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 7d5758e..1251322 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -54,6 +54,14 @@ ynh_add_systemd_config # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append +#================================================= +# SPECIFIC SETUP +#================================================= + +# adding the ergo dedicated user to the 'ssl-cert' group +# to permit the use of the Let's Encrypt certs +usermod -a -G ssl-cert "$app" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================