DocSpace-buildtools/build/install/deb/debian/appserver-common.postinst
Evgeniy Antonyuk 69a6ed4d46
Bugfix/packages correction (#583)
* Add templates

* Add a launch of the configuration script to the postinst

* Edit OneClickInstall for new changes

* Correct appserver-configuration.sh

* chown fix

* Correction debconf-set-selections

* Fix the launch of services after installation

* test

* Correction for database values

* Add variables for mysql configuration

* Revert "test"

This reverts commit 85e5050eb2cfeb1b3723076e44ec0819e0889142.

* Add launch of zookeeper and kafka services
2022-03-14 11:26:24 +03:00

22 lines
509 B
Bash

#!/bin/bash
#
# see: dh_installdeb(1)
set -e
if ! cat /etc/passwd | grep -q "onlyoffice:"; then
adduser --quiet --home /var/www/appserver --system --group onlyoffice
fi
if ! cat /etc/group | grep -q "nginx:"; then
addgroup --quiet --system nginx
fi
if ! cat /etc/passwd | grep -q "nginx:"; then
adduser --quiet --system nginx
usermod -aG nginx nginx
fi
usermod -aG onlyoffice,nginx onlyoffice
chown onlyoffice:onlyoffice /var/log/onlyoffice/appserver /var/www/appserver /etc/onlyoffice/appserver