Evgeniy Antonyuk
66ed2b6372
* Correction of systemd-service-file-references-to-obsolete-target error * Correction of the changelog format * Correction of package-uses-deprecated-debhelper-compat-version * Correction of maintainer-script-needs-depends-on-adduser * Correction of missing-debconf-dependency * Correction of extended-description-is-probably-too-short * Correction of various license format errors * Correction of maintainer-script-lacks-home-in-adduser error * Correction of duplicate-updaterc.d-calls-in-postinst error * Correction of init.d-script-not-included-in-package error * Correction of the error of missing the onlyoffice-login.conf file * Correction of binary-from-other-architecture error * Correction of missing-debian-source-format error * Temporarily correct descriptions * Correction of debhelper-but-no-misc-depends error * Correct of missing-dependency-on-line error * Correct of unstripped-binary-or-object error * Correct of maintainer-script-lacks-debhelper-token error * Change templates description * Correction of untranslatable-debconf-templates error * Fix configuration according to po-debconf recommendations * Fix configuration according to po-debconf recommendations * Fix condition for detecting existence of file * Correct of script-with-language-extension error * Correct of script-with-language-extension error * Remove linux-arm runtimes packaging * Add lintian-overrides * Fix lintian-overrides creation condition * Fix lintian-overrides creation condition * Add overrides for the main package * Add ignoring untranslatable-debconf-templates errors * Errors correction: package-contains-eslint-config-file, package-contains-npm-ignore-file, package-contains-vcs-control-file * Correction of node_modules error output * Fix backup-file-in-package and macos-ds-store-file-in-package errors * Add a override of the unusual-interpreter error * Fix removing files that cause errors
70 lines
2.0 KiB
Bash
70 lines
2.0 KiB
Bash
#!/bin/sh -e
|
|
|
|
set -e
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
case "$1" in
|
|
configure)
|
|
db_get {{product}}/environment || true
|
|
ENVIRONMENT="$RET"
|
|
db_get {{product}}/host || true
|
|
APP_HOST="$RET"
|
|
db_get {{product}}/port || true
|
|
APP_PORT="$RET"
|
|
|
|
db_get {{product}}/db-host || true
|
|
DB_HOST="$RET"
|
|
db_get {{product}}/db-name || true
|
|
DB_NAME="$RET"
|
|
db_get {{product}}/db-user || true
|
|
DB_USER="$RET"
|
|
db_get {{product}}/db-pwd || true
|
|
DB_PWD="$RET"
|
|
|
|
db_get {{product}}/redis-host || true
|
|
REDIS_HOST="$RET"
|
|
db_get {{product}}/redis-port || true
|
|
REDIS_PORT="$RET"
|
|
|
|
db_get {{product}}/rabbitmq-host || true
|
|
RABBITMQ_HOST="$RET"
|
|
db_get {{product}}/rabbitmq-user || true
|
|
RABBITMQ_USER="$RET"
|
|
db_get {{product}}/rabbitmq-port || true
|
|
RABBITMQ_PORT="$RET"
|
|
db_get {{product}}/rabbitmq-password || true
|
|
RABBITMQ_PASSWORD="$RET"
|
|
|
|
db_get {{product}}/elasticsearch-sheme || true
|
|
ELK_SHEME="$RET"
|
|
db_get {{product}}/elasticsearch-host || true
|
|
ELK_HOST="$RET"
|
|
db_get {{product}}/elasticsearch-port || true
|
|
ELK_PORT="$RET"
|
|
|
|
db_get onlyoffice/db-host || true
|
|
DOCUMENT_SERVER_HOST="$RET"
|
|
db_get onlyoffice/ds-port || true
|
|
DOCUMENT_SERVER_PORT="$RET"
|
|
|
|
bash /usr/bin/{{product}}-configuration -e $ENVIRONMENT -mysqlh $DB_HOST -mysqld $DB_NAME -mysqlu $DB_USER -mysqlp $DB_PWD -ash $APP_HOST -asp $APP_PORT -dsh $DOCUMENT_SERVER_HOST \
|
|
-dsp $DOCUMENT_SERVER_PORT -rdh $REDIS_HOST -rdp $REDIS_PORT -rbh $RABBITMQ_HOST -rbp $RABBITMQ_PORT -rbu $RABBITMQ_USER -rbpw $RABBITMQ_PASSWORD -ess $ELK_SHEME -esh $ELK_HOST -esp $ELK_PORT
|
|
;;
|
|
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# dh_installdeb will replace this with shell code automatically
|
|
# generated by other debhelper scripts.
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|