Solution is in this post by @DL6ER:
Edit the file as proposed with for example nano:
nano
sudo nano /etc/init.d/pihole-FTL