Kay0u 4 лет назад
Родитель
Сommit
d768b47891
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      scripts/upgrade

+ 2 - 2
scripts/upgrade

@@ -309,7 +309,7 @@ else
     # Replace dnsmasq by pihole-FTL
     # Replace dnsmasq by pihole-FTL
     # NOTE: pihole-FTL is actually a modified version of dnsmasq
     # NOTE: pihole-FTL is actually a modified version of dnsmasq
     # https://github.com/pi-hole/FTL/tree/master/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
     cp -a $pihole_local_repo/advanced/Templates/pihole-FTL.service /etc/init.d/pihole-FTL
     chmod +x /etc/init.d/pihole-FTL
     chmod +x /etc/init.d/pihole-FTL
@@ -317,7 +317,7 @@ else
 
 
     # Replace the service dnsmasq by pihole-FTL
     # Replace the service dnsmasq by pihole-FTL
     # That way, YunoHost can continue to use dnsmasq by actually using 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
     # Reload systemd config
     systemctl daemon-reload
     systemctl daemon-reload