Browse Source

fix upgrade, again

Kay0u 4 years ago
parent
commit
d768b47891
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/upgrade

+ 2 - 2
scripts/upgrade

@@ -309,7 +309,7 @@ else
     # Replace dnsmasq by pihole-FTL
     # NOTE: pihole-FTL is actually a modified version of dnsmasq
     # https://github.com/pi-hole/FTL/tree/master/dnsmasq
-    ln -s /usr/bin/pihole-FTL /usr/sbin/dnsmasq
+    ln -sf /usr/bin/pihole-FTL /usr/sbin/dnsmasq
 
     cp -a $pihole_local_repo/advanced/Templates/pihole-FTL.service /etc/init.d/pihole-FTL
     chmod +x /etc/init.d/pihole-FTL
@@ -317,7 +317,7 @@ else
 
     # Replace the service dnsmasq by pihole-FTL
     # That way, YunoHost can continue to use dnsmasq by actually using pihole-FTL
-    ln -s /run/systemd/generator.late/pihole-FTL.service /etc/systemd/system/multi-user.target.wants/dnsmasq.service
+    ln -sf /run/systemd/generator.late/pihole-FTL.service /etc/systemd/system/multi-user.target.wants/dnsmasq.service
 
     # Reload systemd config
     systemctl daemon-reload