Browse Source

add openvpn-client.log in logrotate config

HgO 4 months ago
parent
commit
9cfd6013c3
3 changed files with 3 additions and 0 deletions
  1. 1 0
      scripts/install
  2. 1 0
      scripts/restore
  3. 1 0
      scripts/upgrade

+ 1 - 0
scripts/install

@@ -35,6 +35,7 @@ yunohost service add $service_name --description "Tunnels the internet traffic t
 yunohost service enable $service_name
 
 ynh_use_logrotate --logfile="/var/log/ynh-vpnclient.log"
+ynh_use_logrotate --logfile="/var/log/openvpn-client.log"
 
 # checker service
 

+ 1 - 0
scripts/restore

@@ -29,6 +29,7 @@ yunohost service add $service_name --description "Tunnels the internet traffic t
 yunohost service enable "$service_name"
 
 ynh_use_logrotate --logfile="/var/log/ynh-vpnclient.log"
+ynh_use_logrotate --logfile="/var/log/openvpn-client.log"
 
 # checker service
 

+ 1 - 0
scripts/upgrade

@@ -129,6 +129,7 @@ ynh_print_info "Configuring VPN client services..."
 yunohost service add $service_name --description "Tunnels the internet traffic through a VPN" --need_lock --test_status="systemctl is-active openvpn@client.service" --log "/var/log/ynh-vpnclient.log"
 
 ynh_use_logrotate --logfile="/var/log/ynh-vpnclient.log"
+ynh_use_logrotate --logfile="/var/log/openvpn-client.log"
 
 # checker service (this service was previously integrated in yunohost but we do not do this anymore)
 if ynh_exec_warn_less yunohost service status $service_checker_name >/dev/null