Browse Source

remove duplicate config

HgO 1 year ago
parent
commit
e3a4f9e34a
2 changed files with 0 additions and 15 deletions
  1. 0 8
      scripts/install
  2. 0 7
      scripts/upgrade

+ 0 - 8
scripts/install

@@ -179,14 +179,6 @@ ynh_add_config --template="../conf/openvpn_90-hotspot" --destination="/etc/openv
 chmod 0755 "/etc/openvpn/scripts/route-up.d/90-${service_name}"
 chmod 0755 "/etc/openvpn/scripts/route-down.d/90-${service_name}"
 
-# Copy openvpn scripts
-mkdir -pm 0755 /etc/openvpn/scripts
-mkdir -pm 0755 /etc/openvpn/scripts/route-up.d
-mkdir -pm 0755 /etc/openvpn/scripts/route-down.d
-install -o root -g root -m 0755 ../conf/openvpn_90-hotspot /etc/openvpn/scripts/route-up.d/90-hotspot
-install -o root -g root -m 0755 ../conf/openvpn_90-hotspot /etc/openvpn/scripts/route-down.d/90-hotspot
-
-
 #=================================================
 # CONFIGURE HOSTAPD
 #=================================================

+ 0 - 7
scripts/upgrade

@@ -237,13 +237,6 @@ ynh_add_config --template="../conf/openvpn_90-hotspot" --destination="/etc/openv
 chmod 0755 "/etc/openvpn/scripts/route-up.d/90-${service_name}"
 chmod 0755 "/etc/openvpn/scripts/route-down.d/90-${service_name}"
 
-# Copy openvpn scripts
-mkdir -pm 0755 /etc/openvpn/scripts
-mkdir -pm 0755 /etc/openvpn/scripts/route-up.d
-mkdir -pm 0755 /etc/openvpn/scripts/route-down.d
-install -o root -g root -m 0755 ../conf/openvpn_90-hotspot /etc/openvpn/scripts/route-up.d/90-hotspot
-install -o root -g root -m 0755 ../conf/openvpn_90-hotspot /etc/openvpn/scripts/route-down.d/90-hotspot
-
 #=================================================
 # SETUP SYSTEMD
 #=================================================