usermod grommunio -aG gromox || : usermod grommunio -aG systemd-journal || : if test -x /usr/bin/systemd-tmpfiles; then /usr/bin/systemd-tmpfiles --create grommunio-admin-api.conf || : fi if [ ! -e /etc/grommunio-admin-api/jwt-privkey.pem ] || [ ! -e /etc/grommunio-admin-api/jwt-pubkey.pem ] ; then rm -f /etc/grommunio-admin-api/jwt-{priv,pub}key.pem openssl genrsa -out /etc/grommunio-admin-api/jwt-privkey.pem 4096 || : openssl rsa -in /etc/grommunio-admin-api/jwt-privkey.pem -outform PEM -pubout -out /etc/grommunio-admin-api/jwt-pubkey.pem || : chown grommunio:grommunio /etc/grommunio-admin-api/jwt-privkey.pem \ /etc/grommunio-admin-api/jwt-pubkey.pem || : fi if test -x /usr/bin/systemctl; then systemctl daemon-reload || : systemctl try-restart grommunio-admin-api.service 2>/dev/null || : fi