mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2026-01-04 03:33:47 +01:00
Compare commits
4 Commits
66e7bb72a9
...
3e9ebde3c6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e9ebde3c6 | ||
|
|
588f175618 | ||
|
|
a4af38bde5 | ||
|
|
fbbe544f15 |
@@ -12,10 +12,10 @@ chmod +x onlyoffice-install.sh
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
These are the variables that are available to change along with their defaults and a description of what they do. Other variables should be left at defalut unless you have a good reason to change them.
|
These are the variables that are available to change along with their defaults and a description of what they do. Other variables should be left at default unless you have a good reason to change them.
|
||||||
|
|
||||||
PG_VERSION
|
PG_VERSION
|
||||||
- postgres version to use (currently defaluts to 16)
|
- postgres version to use (currently defaluts to 17)
|
||||||
|
|
||||||
## Mount points (should be mounted outside the jail)
|
## Mount points (should be mounted outside the jail)
|
||||||
- none
|
- none
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DB_PASSWORD=$(openssl rand -base64 15)
|
|||||||
RABBITMQ_USER="onlyoffice"
|
RABBITMQ_USER="onlyoffice"
|
||||||
RABBITMQ_PASSWORD=$(openssl rand -base64 15)
|
RABBITMQ_PASSWORD=$(openssl rand -base64 15)
|
||||||
JWT_SECRET=$(openssl rand -base64 20)
|
JWT_SECRET=$(openssl rand -base64 20)
|
||||||
PG_VERSION="16"
|
PG_VERSION="17"
|
||||||
|
|
||||||
# Check for Root Privileges
|
# Check for Root Privileges
|
||||||
if ! [ $(id -u) = 0 ]; then
|
if ! [ $(id -u) = 0 ]; then
|
||||||
@@ -57,6 +57,7 @@ psql -U postgres -c "SELECT pg_reload_conf();"
|
|||||||
chown onlyoffice:onlyoffice /usr/local/etc/onlyoffice/documentserver/local.json
|
chown onlyoffice:onlyoffice /usr/local/etc/onlyoffice/documentserver/local.json
|
||||||
|
|
||||||
# Configure RabbitMQ
|
# Configure RabbitMQ
|
||||||
|
echo "127.0.0.1 onlyoffice" >> /etc/hosts
|
||||||
sysrc rabbitmq_enable="YES"
|
sysrc rabbitmq_enable="YES"
|
||||||
service rabbitmq start
|
service rabbitmq start
|
||||||
rabbitmqctl --erlang-cookie $(cat /var/db/rabbitmq/.erlang.cookie) add_user ${RABBITMQ_USER} ${RABBITMQ_PASSWORD}
|
rabbitmqctl --erlang-cookie $(cat /var/db/rabbitmq/.erlang.cookie) add_user ${RABBITMQ_USER} ${RABBITMQ_PASSWORD}
|
||||||
|
|||||||
Reference in New Issue
Block a user