crpb
There are more possibilities, how to do it 🙂 I liked the version with varibles at the beggining of the script. It was clear and easy.
But other good way could be read all necessary variables by dialog windows at the beginning and after that run installation in visible mode.

About wget: I use for my servers debian minimal install (cca 0.8 GB). There is not even man in it 🙂 All I need I install for actual purpose. It is not so much work and system is light and clear.

I forgot report other mistake in the script. After installation is missing directory /etc/grommunio-common/nginx/. After certificate generation at line 444 there is created file ssl_certificate.conf in this directory. As directory is missing, file is not created and at the end nginx not start. When I added line: mkdir -p /etc/grommunio-common/nginx/ before configuration file creation it start to work.

Just another question. In admin web gui dashboard is missing grommunio-antispam only in my test server installation. Everything works properly, just buttons Enable/Disable, Stop, Restart, Start not work. I get this message: Interactive authentication required. See system logs and 'systemctl status postfix.service' for details.
Is it possible to repare it somehow? Can someone help me where can I find more info? Thank you.

  • crpb replied to this.

    I wasn't able to do much yet but i guess i could at least push my ./common/repo

    cb@asterix ~ghub/crpb/grommunio-setup-debian/common (git)-[getopts] % cat repo
    #!/bin/bash
    # SPDX-License-Identifier: AGPL-3.0-or-later
    # SPDX-FileCopyrightText: 2021 grommunio GmbH
    
    setup_repo() {
      local uri tmpkey kr
      uri='https://download.grommunio.com/RPM-GPG-KEY-grommunio'
      tmpkey=$(mktemp)
      echo
      echo -e " \x1b[36m▼\x1b[0m grommunio-setup is updating the system"
      echo
      mkdir -p /etc/apt/keyrings
      kr=/etc/apt/keyrings/download.grommunio.com.gpg
      if [ ! -f $kr ]; then
        /usr/lib/apt/apt-helper download-file "${uri}" "${tmpkey}"
        gpg --dearmor --output "${kr}" "${tmpkey}"
        rm "${tmpkey}"
      fi
    cat << SOURCES > /etc/apt/sources.list.d/grommunio-community.sources
    Types: deb
    URIs: https://download.grommunio.com/community/Debian_11
    Suites: Debian_11
    Components: main
    Signed-By: $kr
    SOURCES
    
      apt-get update 2>&1 |tee -a "${LOGFILE}"
      apt-get install -y "${PACKAGES[@]}" 2>&1 |tee -a "${LOGFILE}"
      echo
      echo -e " \x1b[36m▼\x1b[0m operation completed"
      echo
      # keep visual output on the screen for a glimpse so admin can decide
      # if the logfile needs to be inspected.
      sleep 1
    }

    No wget or curl needed 😛

    ladas Everything works properly, just buttons Enable/Disable, Stop, Restart, Start not work. I get this message: Interactive authentication required. See system logs and 'systemctl status postfix.service' for details.
    Is it possible to repare it somehow?

    If i'm not misatken this would basically be possible with these changes..

    weini [Allow users to manage services]
    Identity=unix-user:grommunio
    Action=org.freedesktop.systemd1.manage-units
    ResultAny=yes

    And:

    WalterH Da gibt es vermutlich eine einfacher Lösung, 2 Dateien anlegen:
    /etc/grommunio-admin-api/conf.d/01-services.yamlmit Inhalt

    Haven't tried it myself yet tho but seems it works for @weini .

      crpb Yes, correct for your commet on my posting. @WalterH suggestion did not work for me regarding the permissions.

      2 months later

      rspam password for GUI login
      I installed new clean machine now and used just a bit modified script. I inspected the rspam password creation and if I understand well the password should be the same like grommunio admin password. BUT this password not work for rspam GUI. Does someone know how to login in? Or should it be possible to log in? Thanks for any answer.

        ladas
        I am very sorry for panic. At worker file was two password lines, one with cpu error. After line removing ans services restart, login works with admin password.

        a month later

        FYI: new version for building the nginx-modules

        i think we could integrate that as it now is in the setup. Thoughts?

        And if someone else could also try out my current version of the grommunio-setup i would be thankful.
        https://github.com/crpb/grommunio-setup-debian.git

        git clone https://github.com/crpb/grommunio-setup-debian.git /usr/local/share/grommunio-setup
        /usr/local/share/grommunio-setup/grommunio-setup
        4 months later

        crpb
        Ich habe das jetzt mit Debian 12 Bookworm getestet und kann bestätigen, dass der Workaround über die /etc/polkit-1/localauthority/50-local.d/manage-units.pkla nicht mehr notwendig ist.
        Die von Grommunio im Paket grommunio-admin-api bereitgestellte /usr/share/polkit-1/rules.d/10-grommunio.rules wird von der neueren Polkit Version von Debian 12 korrekt interprtiert.

        Einziger Schöhnheitsfehler ist noch, dass dieser Datei der Service php-fpm.service aufgeführt wird. Unter Debian 12 muss das aber php8.2-fpm.service sein.

        • crpb replied to this.

          weini

          Danke der Rückmeldung, wollte ich die tage auch endlich mal testen wenn ich dazu komme 😛

          12 days later

          The changes made to get this to install on Debian 12 appear to have broken it installing on Debian 11

          It gets as far as letting you select use a local database and then says failed to connect to the database.

          It still works with the one I forked before the changes
          https://github.com/holl595/grommunio-setup

          Ooops..
          I will revert/split/branch it later/that evening.. and when i find the time i can "repair" it so it will be working on both again..

          3 months later

          Moin,

          hat jemand schon mal versucht eine, auf diese Art, installierte Debian 11 auf Debian 12 zu aktualisieren? Bei mir geht das nicht und ich diverse Probleme mit Grommunio-Paketen, welche bei einem apt full-update rausgeworfen werden.

          Das rauswerfen ist nicht so tragisch während dem system-upgrade. Nur ¡kein 'purge'! durchführen und evtl. das ganze auto-remove gefuddel auch erst mal abwarten...

          Hast du alle sources angepasst auf Bookworm/12 für die umstellung? apt-cache policy

          Logs, logs, logs

          Ansonsten weil das ein krampf sein kann hier mit hin und her kannste auch im oftc vorbeischaun in #grommunio. Müsste später/abends irgendwann mal zeit haben (~cb).

            crpb Uhh… #grommunio - wo?

            Und ich hatte natürlich alle Repos-Sourcen aktualisiert, hatte aber auch auto-purge vor dem finalen upgrade ausgeführt. Ich kann das mal weglassen… zum Glück gibts ja VM-Snapshots… 😉

            • crpb replied to this.

              crpb Ahh… cool.

              Ich habe inzwischen das Upgrade weitegehend hinbekommen. Nachdem ich diese Packete: grommunio-dav grommunio-sync grommunio-web gromox, nach dem full-upgrade auf Debian 12, nochmals installieren musste, fehlt am Ende die Socket-Datei für Sync. Auch ein --reinstall hilft nicht, die Socket-Datei wird nicht installiert…

              root@grommunio:/run/php# apt install grommunio-sync --reinstall
              Paketlisten werden gelesen… Fertig
              Abhängigkeitsbaum wird aufgebaut… Fertig
              Statusinformationen werden eingelesen… Fertig
              Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
                g++-10 libaio1 libbfio1 libcbor0 libclamav9 libfmt8 libgumbo1 libice-dev libice6 libicu67 libidn11 libjim0.79 libjsoncpp24 libldap-2.4-2
                liblua5.1-0 libmpdec3 libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail
                libnginx-mod-stream libnginx-mod-stream-geoip libntfs-3g883 libperl5.32 libpython3.9 libpython3.9-dbg libpython3.9-minimal
                libpython3.9-stdlib libsm-dev libsm6 libstdc++-10-dev libtfm1 libtiff5 libtiffxx5 libtinyxml2-8 liburing1 libusb-0.1-4 libvpx6 libwebp6
                libwireshark14 libwiretap11 libwsutil12 libxt-dev libxt6 linux-image-5.10.0-19-amd64 linux-image-5.10.0-20-amd64
                linux-image-5.10.0-25-amd64 lua-bitop lua-cjson mariadb-server-10.5 nginx-core perl-modules-5.32 python3-decorator python3-selinux
                python3-slip python3-slip-dbus python3-zope.component python3-zope.event python3-zope.hookable python3-zope.interface python3.9
                python3.9-dbg python3.9-minimal telnet x11-common
              Verwenden Sie »apt autoremove«, um sie zu entfernen.
              0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
              Es müssen noch 0 B von 244 kB an Archiven heruntergeladen werden.
              Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
              (Lese Datenbank ... 86652 Dateien und Verzeichnisse sind derzeit installiert.)
              Vorbereitung zum Entpacken von .../grommunio-sync_2.0.46.619ae1c-0_all.deb ...
              Entpacken von grommunio-sync (2.0.46.619ae1c-0) über (2.0.46.619ae1c-0) ...
              grommunio-sync (2.0.46.619ae1c-0) wird eingerichtet ...
              '/usr/share/grommunio-sync/config.php' -> '/etc/grommunio-sync/grommunio-sync.conf.php'
              '/usr/sbin/grommunio-sync-top' -> '/usr/share/grommunio-sync/grommunio-sync-top.php'
              root@grommunio:/run/php# ls -l
              insgesamt 4
              -rw-r--r-- 1 root     root      5  3. Dez 09:24 php8.2-fpm.pid
              srw-rw---- 1 www-data www-data  0  3. Dez 09:24 php8.2-fpm.sock
              lrwxrwxrwx 1 root     root     30  2. Dez 15:21 php-fpm.sock -> /etc/alternatives/php-fpm.sock
              srw-rw-rw- 1 grodav   grodav    0  3. Dez 09:24 php-grommunio-dav-fpm.sock
              srw-rw-rw- 1 groweb   groweb    0  3. Dez 09:24 php-grommunio-web-fpm.sock

              Wenn ich wüsste, wer oder was diese Dateien erzeugt, dann könnte ich das evtl. lösen. Bei der Reinstallation von grommunio-web z.B., wird die Socket-Datei angelegt…

                sbudach Wenn ich wüsste, wer oder was diese Dateien erzeugt

                systemctl restart 'php*.service'?
                Sollte ja etwa so aussehen

                % dpkg -S /etc/php/8.2/fpm/pool.d
                grommunio-web, php8.2-fpm, grommunio-sync, grommunio-dav, gromox: /etc/php/8.2/fpm/pool.d

                  sbudach Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:

                  Das sind die alten Pakete vom Debian 11, Debian 12 enthält neuere Pakete, mit.
                  apt autoremove --purge
                  als letzten Schritt nach dem erfolgreichen Update entsorgen.

                    © 2020-2024 grommunio GmbH. All rights reserved. | https://grommunio.com | Data Protection | Legal notice