Selaa lähdekoodia

Fix ufw firewall service name

bryan 4 vuotta sitten
vanhempi
commit
baa1975e47
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      installJRMC

+ 4 - 4
installJRMC

@@ -976,8 +976,8 @@ EOF"
         elif [[ "$ID" =~ ^(ubuntu|debian)$ ]]; then
             # Debian ufw package state is broken on fresh installations
             [[ ! -x $(command -v ufw) ]] && _installPackage ufw
-            if [[ ! -f "/etc/ufw/applications.d/$1.service" ]]; then
-                _bash_cmd "cat <<-EOF > /etc/ufw/applications.d/$1.service
+            if [[ ! -f "/etc/ufw/applications.d/$1" ]]; then
+                _bash_cmd "cat <<-EOF > /etc/ufw/applications.d/$1
 [$1]
 title=$1
 description=$1 installed by installJRMC
@@ -1366,8 +1366,8 @@ EOF"
             _firewall_cmd --reload
         elif [[ -x $(command -v ufw) ]]; then
             _firewall_cmd delete allow jriver
-            [[ -f "/etc/ufw/applications.d/jriver.service" ]] \
-                && _rm_cmd /etc/ufw/applications.d/jriver.service
+            [[ -f "/etc/ufw/applications.d/jriver" ]] \
+                && _rm_cmd /etc/ufw/applications.d/jriver
         fi
 
         echo "Uninstalling Media Center"