feat: Optionally disable the pluginmanager
This commit is contained in:
parent
d569f0335b
commit
46de2f30a9
5 changed files with 20 additions and 0 deletions
0
.ansible/.lock
Normal file
0
.ansible/.lock
Normal file
|
@ -17,3 +17,4 @@ You need to enable the *contrib* apt repository.
|
|||
| `onlyoffice_db_name` | string | onlyoffice |
|
||||
| `onlyoffice_jwt_secret` | string | *not set* |
|
||||
| `onlyoffice_ds_port` | int | 80 |
|
||||
| `onlyoffice_disable_pluginmanager` | bool | false |
|
||||
|
|
|
@ -3,6 +3,7 @@ onlyoffice_db_host: localhost
|
|||
onlyoffice_db_user: onlyoffice
|
||||
onlyoffice_db_name: onlyoffice
|
||||
onlyoffice_ds_port: 80
|
||||
onlyoffice_disable_pluginmanager: false
|
||||
|
||||
database_host: "{{ onlyoffice_db_host }}"
|
||||
|
||||
|
|
3
files/99-onlyoffice
Normal file
3
files/99-onlyoffice
Normal file
|
@ -0,0 +1,3 @@
|
|||
### Disables the pluginmanager by removing the directory
|
||||
|
||||
DPkg::Post-Invoke { "if dpkg -l | grep -q 'onlyoffice-documentserver'; then rm -rf /var/www/onlyoffice/documentserver/sdkjs-plugins/marketplace; systemctl restart ds-docservice.service fi"; };
|
|
@ -56,3 +56,18 @@
|
|||
path: /etc/rabbitmq/rabbitmq-env.conf
|
||||
line: "NODE_IP_ADDRESS={{ rabbitmq_listen_address }}"
|
||||
notify: Restart RabbitMQ
|
||||
|
||||
- name: "Install | Remove Pluginmanager"
|
||||
when: onlyoffice_disable_pluginmanager
|
||||
block:
|
||||
- name: Remove Pluginmanager directory
|
||||
ansible.builtin.file:
|
||||
path: /var/www/onlyoffice/documentserver/sdkjs-plugins/marketplace
|
||||
state: absent
|
||||
notify: Restart documentserver
|
||||
- name: Copy apt post hool script
|
||||
ansible.builtin.copy:
|
||||
src: 99-onyloffice
|
||||
dest: /etc/apt/apt.conf.d/99-onyloffice
|
||||
mode: "0644"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue