Ich habe die Zeilen 88 und 98 auskommentiert, dann lief es an:
localhost:/ # /bin/bash grommunio-files_setup_wh.sh
grommunio-files_setup_wh.sh: line 88: $LOG: ambiguous redirect
>> Failing command is 'echo "$(date +"%d.%m.%Y %H:%M:%S") $LEVEL $1" >> $LOG' on line 96 and status is 1 <<
localhost:/ # /bin/bash grommunio-files_setup_wh.sh
>> Failing command is '[[ $2 != "none" ]]' on line 98 and status is 1 <<
localhost:/ # /bin/bash grommunio-files_setup_wh.sh
WARNING:
Running this script will add grommunuio files to an existing grommunio server.
Please note, an existing grommunio files installation will be silently removed!
If there is an existing grommunio files installation on this machine, all of this data will be lost!
Do you want to proceed? (y/n) y
Continue script
Grommunio files installation start
0. parameter grofiles, Passwd: xxxxxxxxxxxxxxx, FQDN: grommunio.tsu-pe.de, Logfile: /root/grofiles_wh_setup.log
1. install current grommunio-files packages
2. drop database if exists grofiles; on localhost.
3. nuke default admin data, since it wont install if the admin user that is created already has files.
4. make a clean config.php.
5. configure grofiles, Passwd: xxxxx, FQDN: xxxxxxxxxxxx
/usr/share/grommunio-files /
*** sudo -u grofiles ./occ -q -n maintenance:install --database=mysql --database-name=grofiles --database-user=grofiles --database-pass=a###a --admin-user=admin --admin-pass=a###a --data-dir=/var/lib/grommunio-files/data
/
6. Enable services
jq: error: Could not open file /tmp/config.json: No such file or directory
>> Failing command is 'jq '.fileWebAddress |= "https://'${FQDN}'/files"' /tmp/config.json > /tmp/config-new.json' on line 223 and status is 2 <<
localhost:/ #
Dann der Abbruch, weiter gings nicht. Dann habe ich den Ordner /usr/share/grommunio-files/ überprüft, an der Struktur sieht man, dass dort eine nextCloud-Installation liegt, Version 25.0.4 und damit aktuell.