Skip to content

Commit

Permalink
unset service
Browse files Browse the repository at this point in the history
  • Loading branch information
ipitio committed Jan 25, 2024
1 parent 94533e7 commit 350fcce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions advanced/Scripts/webpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,13 @@ EOF'
fi
}

UnsetService() {
systemctl disable --now pihole-speedtest.timer &> /dev/null
rm -f /etc/systemd/system/pihole-speedtest.service
rm -f /etc/systemd/system/pihole-speedtest.timer
systemctl daemon-reload
}

RunSpeedtestNow() {
if ! command -v tmux &> /dev/null; then
apt-get install tmux -y
Expand Down Expand Up @@ -1027,6 +1034,7 @@ main() {
"-sc" ) ClearSpeedtestData;;
"-ss" ) SpeedtestServer;;
"-st" ) UpdateSpeedTestChartType;;
"-su" ) UnsetService;;
"addcustomdns" ) AddCustomDNSAddress;;
"removecustomdns" ) RemoveCustomDNSAddress;;
"addcustomcname" ) AddCustomCNAMERecord;;
Expand Down

0 comments on commit 350fcce

Please sign in to comment.