Skip to content

Commit

Permalink
echos
Browse files Browse the repository at this point in the history
  • Loading branch information
ipitio committed Jan 26, 2024
1 parent 5093bad commit 7c723f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion advanced/Scripts/webpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ generate_systemd_calendar() {
current_second=$(echo "$current_second + $total_seconds" | bc)
done
fi

local IFS=$'\n'
echo "${freq_entries[*]}"
}
Expand All @@ -678,7 +677,9 @@ SetService() {
if [[ "$1" == "0" ]]; then
UnsetService
else
echo "Scheduling speedtest every $1 hours"
freq=$(generate_systemd_calendar "$1")
echo "Scheduled"
sudo bash -c 'cat > /etc/systemd/system/pihole-speedtest.service << EOF
[Unit]
Description=Pi-hole Speedtest
Expand Down

0 comments on commit 7c723f8

Please sign in to comment.