[Solved] NCP curl installation fails

Hi,
I tried to install ncp on a Pi 4 (Raspbian Buster, latest) using the curl install method and the installation ran into an error somewhere at the end.

Here is the last output from the installer:

Executing: /lib/systemd/systemd-sysv-install enable unattended-upgrades
Trigger fĂĽr man-db (2.8.5-2) werden verarbeitet ...
Trigger fĂĽr systemd (241-5+rpi1) werden verarbeitet ...
Running unattended-upgrades
Unattended upgrades active: yes (autoreboot true)
grep: /usr/local/etc/ncp-version: Datei oder Verzeichnis nicht gefunden
/usr/local/etc/library.sh: Zeile 262: [: : Ganzzahliger Ausdruck erwartet.
/usr/local/etc/library.sh: Zeile 264: [: : Ganzzahliger Ausdruck erwartet.
/usr/local/etc/library.sh: Zeile 266: [: : Ganzzahliger Ausdruck erwartet.
/usr/local/etc/library.sh: Zeile 262: [: : Ganzzahliger Ausdruck erwartet.
/usr/local/etc/library.sh: Zeile 264: [: : Ganzzahliger Ausdruck erwartet.
/usr/local/etc/library.sh: Zeile 266: [: : Ganzzahliger Ausdruck erwartet.
Nextcloud is not installed - only a limited number of commands are available

There are no commands defined in the "config:app" namespace. 

I can see the activation page but after clicking the “Activate” button, nothing happens and the ncp.log says

[ nc-admin ]
Nextcloud is not installed - only a limited number of commands are available
There are no commands defined in the "user" namespace.

How can I proceed? Which manual steps do I have to take?

If I simply run the curl installer again it always stops saying:

Site ncp-activation already enabled
useradd: User »ncp« already exists

Thanks in advance!
Marco

Solved it by editing the install.sh script and just running the last steps again:

run_app_unsafe bin/ncp/CONFIG/nc-init.sh
bash /usr/local/bin/ncp-provisioning.sh

popd

Sorry, that solution won’t work here, as that command ( run_app_unsafe) doesn’t exist on my system. If the Nextcloud installer was supposed to put it there, it didn’t.