-
Notifications
You must be signed in to change notification settings - Fork 0
/
enable-nextcloud-office.sh
22 lines (22 loc) · 1 KB
/
enable-nextcloud-office.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
##############################################################
# Script description -scubamuc- https://scubamuc.github.io/ #
# Re-enable Nextcloud office & CODE on Nextcloud snap #
# This script re-enables Nextcloud office and CODE on #
# Nextcloud snap installation, where Nextcloud office #
# loses or changes its wonrking configuration after an #
# app-update or app-upgrade #
##############################################################
# 1. Disable CODE
sudo nextcloud.occ app:disable richdocumentscode ;
# 2. Disable Nextcloud office
sudo nextcloud.occ app:disable richdocuments ;
# 3. Delete public_wopi configuration
sudo nextcloud.occ config:app:delete richdocuments public_wopi_url ;
# 4. Delete wopi_url configuration
sudo nextcloud.occ config:app:delete richdocuments wopi_url ;
# 5. Enable Nextcloud office
sudo nextcloud.occ app:enable richdocuments ;
# 6. Enable CODE
sudo nextcloud.occ app:enable richdocumentscode ;
exit