mirror of
https://github.com/YunoHost-Apps/ergo_ynh.git
synced 2024-09-03 18:26:31 +02:00
Merge pull request #14 from YunoHost-Apps/ssl-certs
add the user to the 'ssl-cert' group
This commit is contained in:
commit
a8de88049a
3 changed files with 24 additions and 0 deletions
|
@ -97,6 +97,14 @@ ynh_script_progression --message="Configuring log rotation..." --weight=2
|
||||||
# Use logrotate to manage application logfile(s)
|
# Use logrotate to manage application logfile(s)
|
||||||
ynh_use_logrotate
|
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
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -56,6 +56,14 @@ systemctl enable $app.service --quiet
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
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
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -54,6 +54,14 @@ ynh_add_systemd_config
|
||||||
# Use logrotate to manage app-specific logfile(s)
|
# Use logrotate to manage app-specific logfile(s)
|
||||||
ynh_use_logrotate --non-append
|
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
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue