Cant update pi-hole

As soon as i run the pihole-up command i get this:/usr/local/bin/pihole: line 63: /opt/pihole/ No such file or directory
Any ideas?

Please upload a debug log and post just the token that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

pi@Pi-Hole:/etc/.pihole $ pihole -d
/usr/local/bin/pihole: line 47: /opt/pihole/ No such file or directory
i think the install may be corrupt?

What does sudo ls -la /opt/pihole/ show as a file listing?

pi@Pi-Hole:~ $ sudo ls -la /opt/pihole/
total 48
drwxr-xr-x 2 root root 4096 May 2 15:42 .
drwxr-xr-x 4 root root 4096 Dec 1 13:37 ..
-rwxr-xr-x 1 root root 1075 Feb 10 23:01 COL_TABLE
-rwxr-xr-x 1 root root 1967 Feb 10 23:01
-rwxr-xr-x 1 root root 8188 Feb 10 23:01
-rwxr-xr-x 1 root root 823 Feb 10 23:01
-rwxr-xr-x 1 root root 9011 Feb 10 23:01
-rwxr-xr-x 1 root root 3092 Feb 10 23:01
-rwxr-xr-x 1 root root 1177 Feb 10 23:01

You're missing a lot of the files. Including /opt/pihole/ You'll need to re-install after you find out why the files are missing.

can i perform a reinstall over the top somehow?

I guess so, though not knowing why large numbers of files are no longer where you put them would be something I'd concern myself with.

thanks for your help, ill reinstall from scratch