Created
February 12, 2020 15:35
-
-
Save ShockwaveNN/77f8b3a49375b7df2fe93c77057b0fa9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + set -e | |
| + . /usr/share/debconf/confmodule | |
| + [ ! 1 ] | |
| + [ -z ] | |
| + exec | |
| + [ ] | |
| + exec | |
| + DEBCONF_REDIR=1 | |
| + export DEBCONF_REDIR | |
| + DIR=/var/www/onlyoffice/documentserver | |
| + LOG_DIR=/var/log/onlyoffice/documentserver | |
| + APP_DIR=/var/lib/onlyoffice/documentserver | |
| + CONF_DIR=/etc/onlyoffice/documentserver | |
| + LOCAL_CONFIG=/etc/onlyoffice/documentserver/local.json | |
| + EXAMPLE_CONFIG=/etc/onlyoffice/documentserver-example/local.json | |
| + JSON_BIN=/var/www/onlyoffice/documentserver/npm/node_modules/.bin/json | |
| + JSON=/var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json | |
| + JSON_EXAMPLE=/var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver-example/local.json | |
| + OLD_VERSION=5.5.0-86 | |
| + DB_TYPE= | |
| + DB_HOST= | |
| + DB_PORT= | |
| + DB_USER= | |
| + DB_PWD= | |
| + DB_NAME= | |
| + RABBITMQ_HOST= | |
| + RABBITMQ_USER= | |
| + RABBITMQ_PWD= | |
| + REDIS_HOST= | |
| + CLUSTER_MODE= | |
| + adduser --quiet --home /var/www/onlyoffice/documentserver --system --group ds | |
| + adduser --quiet www-data ds | |
| + create_local_configs | |
| + dirname /etc/onlyoffice/documentserver/local.json | |
| + [ -d /etc/onlyoffice/documentserver -a ! -f /etc/onlyoffice/documentserver/local.json ] | |
| + dirname /etc/onlyoffice/documentserver-example/local.json | |
| + [ -d /etc/onlyoffice/documentserver-example -a ! -f /etc/onlyoffice/documentserver-example/local.json ] | |
| + read_saved_params | |
| + db_get onlyoffice/db-type | |
| + _db_cmd GET onlyoffice/db-type | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/db-type | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=postgres | |
| + return 0 | |
| + DB_TYPE=postgres | |
| + db_get onlyoffice/db-host | |
| + _db_cmd GET onlyoffice/db-host | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/db-host | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=localhost | |
| + return 0 | |
| + DB_HOST=localhost | |
| + db_get onlyoffice/db-port | |
| + _db_cmd GET onlyoffice/db-port | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/db-port | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET= | |
| + return 0 | |
| + DB_PORT= | |
| + db_get onlyoffice/db-user | |
| + _db_cmd GET onlyoffice/db-user | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/db-user | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=super_user | |
| + return 0 | |
| + DB_USER=super_user | |
| + db_get onlyoffice/db-pwd | |
| + _db_cmd GET onlyoffice/db-pwd | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/db-pwd | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=super_password | |
| + return 0 | |
| + DB_PWD=super_password | |
| + db_get onlyoffice/db-name | |
| + _db_cmd GET onlyoffice/db-name | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/db-name | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=onlyoffice | |
| + return 0 | |
| + DB_NAME=onlyoffice | |
| + db_get onlyoffice/rabbitmq-host | |
| + _db_cmd GET onlyoffice/rabbitmq-host | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/rabbitmq-host | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=localhost | |
| + return 0 | |
| + RABBITMQ_HOST=localhost | |
| + db_get onlyoffice/rabbitmq-user | |
| + _db_cmd GET onlyoffice/rabbitmq-user | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/rabbitmq-user | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=guest | |
| + return 0 | |
| + RABBITMQ_USER=guest | |
| + db_get onlyoffice/rabbitmq-pwd | |
| + _db_cmd GET onlyoffice/rabbitmq-pwd | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/rabbitmq-pwd | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=guest | |
| + return 0 | |
| + RABBITMQ_PWD=guest | |
| + db_get onlyoffice/redis-host | |
| + _db_cmd GET onlyoffice/redis-host | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/redis-host | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=localhost | |
| + return 0 | |
| + REDIS_HOST=localhost | |
| + db_get onlyoffice/cluster-mode | |
| + _db_cmd GET onlyoffice/cluster-mode | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/cluster-mode | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=false | |
| + return 0 | |
| + CLUSTER_MODE=false | |
| + db_get onlyoffice/jwt-enabled | |
| + _db_cmd GET onlyoffice/jwt-enabled | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/jwt-enabled | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=true | |
| + return 0 | |
| + JWT_ENABLED=true | |
| + db_get onlyoffice/jwt-secret | |
| + _db_cmd GET onlyoffice/jwt-secret | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/jwt-secret | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=test | |
| + return 0 | |
| + JWT_SECRET=test | |
| + db_get onlyoffice/jwt-header | |
| + _db_cmd GET onlyoffice/jwt-header | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/jwt-header | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=AuthorizationJwt | |
| + return 0 | |
| + JWT_HEADER=AuthorizationJwt | |
| + install_db | |
| + install_postges | |
| + CONNECTION_PARAMS=-hlocalhost -p5432 -Usuper_user -w | |
| + [ -n super_password ] | |
| + export PGPASSWORD=super_password | |
| + PSQL=psql -q -hlocalhost -p5432 -Usuper_user -w | |
| + CREATEDB=createdb -hlocalhost -p5432 -Usuper_user -w | |
| + set +e | |
| + | |
| + ERRCODE=0 | |
| + + [ 0 -ne 0 ]psql | |
| -q -hlocalhost -p5432+ -Usuper_userset -w -e -c | |
| ; | |
| + psql -q -hlocalhost -p5432 -Usuper_user -w+ + cut -d| -f 1grep | |
| -qw onlyoffice | |
| -lt | |
| psql: FATAL: database "super_user" does not exist | |
| + [ ! false = true ] | |
| + psql -q -hlocalhost -p5432 -Usuper_user -w -d onlyoffice -f /var/www/onlyoffice/documentserver/server/schema/postgresql/removetbl.sql | |
| + psql -q -hlocalhost -p5432 -Usuper_user -w -d onlyoffice -f /var/www/onlyoffice/documentserver/server/schema/postgresql/createdb.sql | |
| + save_db_params | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services===undefined)this.services={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring===undefined)this.services.CoAuthoring={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.sql===undefined)this.services.CoAuthoring.sql={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.sql.type = 'postgres' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.sql.dbHost = 'localhost' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.sql.dbPort = '5432' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.sql.dbName = 'onlyoffice' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.sql.dbUser = 'super_user' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.sql.dbPass = 'super_password' | |
| + save_rabbitmq_params | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.rabbitmq===undefined)this.rabbitmq={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.rabbitmq.url = 'amqp://guest:guest@localhost' | |
| + save_redis_params | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services===undefined)this.services={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring===undefined)this.services.CoAuthoring={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.redis===undefined)this.services.CoAuthoring.redis={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.redis.host = 'localhost' | |
| + save_jwt_params | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services===undefined)this.services={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring===undefined)this.services.CoAuthoring={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.token===undefined)this.services.CoAuthoring.token={}; | |
| + [ true = true ] | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.token.enable===undefined)this.services.CoAuthoring.token.enable={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.token.enable.request===undefined)this.services.CoAuthoring.token.enable.request={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.token.enable.browser = true | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.token.enable.request.inbox = true | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.token.enable.request.outbox = true | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.secret===undefined)this.services.CoAuthoring.secret={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.secret.inbox===undefined)this.services.CoAuthoring.secret.inbox={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.secret.inbox.string = 'test' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.secret.outbox===undefined)this.services.CoAuthoring.secret.outbox={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.secret.outbox.string = 'test' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.secret.session===undefined)this.services.CoAuthoring.secret.session={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.secret.session.string = 'test' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.token.inbox===undefined)this.services.CoAuthoring.token.inbox={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.token.inbox.header = 'AuthorizationJwt' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e if(this.services.CoAuthoring.token.outbox===undefined)this.services.CoAuthoring.token.outbox={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver/local.json -e this.services.CoAuthoring.token.outbox.header = 'AuthorizationJwt' | |
| + [ -f /etc/onlyoffice/documentserver-example/local.json ] | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver-example/local.json -e if(this.server===undefined)this.server={}; | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver-example/local.json -e if(this.server.token===undefined)this.server.token={}; | |
| + [ true = true ] | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver-example/local.json -e this.server.token.enable = true | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver-example/local.json -e this.server.token.secret = 'test' | |
| + /var/www/onlyoffice/documentserver/npm/node_modules/.bin/json -I -q -f /etc/onlyoffice/documentserver-example/local.json -e this.server.token.authorizationHeader = 'AuthorizationJwt' | |
| + setup_nginx | |
| + DS_CONF=/etc/onlyoffice/documentserver/nginx/ds.conf | |
| + db_get onlyoffice/ds-port | |
| + _db_cmd GET onlyoffice/ds-port | |
| + _db_internal_IFS= | |
| + IFS= | |
| + printf %s\n GET onlyoffice/ds-port | |
| + IFS= | |
| + IFS= | |
| read -r _db_internal_line | |
| + RET=80 | |
| + return 0 | |
| + DS_PORT=80 | |
| + sed s/\(listen .*:\)\([0-9]\{2,5\}\b\)\( default_server\)\?\(;\)/\180\3\4/ -i /etc/onlyoffice/documentserver/nginx/ds.conf | |
| + [ ! -f /proc/net/if_inet6 ] | |
| + [ -d /etc/nginx/conf.d ] | |
| + [ -e /etc/nginx/conf.d/onlyoffice-documentserver.conf ] | |
| + [ -d /etc/nginx/conf.d ] | |
| + [ ! -e /etc/nginx/conf.d/ds.conf ] | |
| + rm -f /etc/nginx/sites-enabled/default | |
| + mkdir -p /var/log/onlyoffice/documentserver/docservice | |
| + mkdir -p /var/log/onlyoffice/documentserver-example | |
| + mkdir -p /var/log/onlyoffice/documentserver/converter | |
| + mkdir -p /var/log/onlyoffice/documentserver/spellchecker | |
| + mkdir -p /var/log/onlyoffice/documentserver/metrics | |
| + mkdir -p /var/log/onlyoffice/documentserver/gc | |
| + mkdir -p /var/lib/onlyoffice/documentserver/App_Data | |
| + mkdir -p /var/lib/onlyoffice/documentserver/App_Data/cache/files | |
| + mkdir -p /var/lib/onlyoffice/documentserver/App_Data/docbuilder | |
| + mkdir -p /var/www/onlyoffice/documentserver/../Data | |
| + mkdir -p /var/www/onlyoffice/documentserver/fonts | |
| + mkdir -p /var/www/onlyoffice/documentserver-example/public/files | |
| + chown ds:ds -R /var/www/onlyoffice/documentserver /var/www/onlyoffice/documentserver-example | |
| + chmod 644 /etc/onlyoffice/documentserver/logrotate/ds.conf | |
| + chown root:root /etc/onlyoffice/documentserver/logrotate/ds.conf | |
| + documentserver-generate-allfonts.sh true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment