1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00
This commit is contained in:
ericgaspar 2021-01-12 23:12:38 +01:00
parent da6b89ece0
commit b7c3625e7c
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 9 additions and 3 deletions

View file

@ -61,7 +61,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
# BACKUP LOGROTATE
#=================================================
#ynh_backup --src_path="/etc/logrotate.d/$app"
ynh_backup --src_path="/etc/logrotate.d/$app"
#=================================================
# BACKUP GALÈNE LOG

View file

@ -94,7 +94,7 @@ systemctl enable coturn-$app.service --quiet
# RESTORE THE LOGROTATE CONFIGURATION
#=================================================
#ynh_restore_file --origin_path="/var/log/$app"
ynh_restore_file --origin_path="/var/log/$app"
#=================================================
# RESTORE USER RIGHTS
@ -108,7 +108,7 @@ chmod -R 755 $final_path
chmod u=rwX,g=rX,o= -R /etc/$app
chmod 770 $final_path/Coturn_config_rotate.sh
setfacl -R -m user:turnserver:rX /etc/$app
#setfacl -R -m user:turnserver:rwX /var/log/$app
setfacl -R -m user:turnserver:rwX /var/log/$app
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
@ -198,6 +198,12 @@ ynh_store_file_checksum --file="$coturn_config_path"
ynh_exec_warn_less yunohost firewall allow Both $turnserver_tls_port
ynh_exec_warn_less yunohost firewall allow Both $turnserver_alt_tls_port
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION
#=================================================
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
# GENERIC FINALIZATION
#=================================================