Skip to content

Commit

Permalink
Remove extra step for configure onlyoffice-owncloud (#34)
Browse files Browse the repository at this point in the history
* Use configure.sh file inside container

* Call configure on docker-compose

* Rename configure.sh to run.sh

* Add timeout for owncloud initialization

* Remove readme line about configure
  • Loading branch information
ShockwaveNN authored and LinneyS committed Jul 12, 2019
1 parent d4e2383 commit 4b19715
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ Document Server and ownCloud Docker installation will install the preconfigured

*Please note**: you might need to wait a couple of minutes when all the containers are up and running after the above command.

3. Run the `set_configuration.sh` script:

```
bash set_configuration.sh
```

Now you can enter ownCloud and create a new document. It will be opened in ONLYOFFICE Document Server.


Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ services:
- '8080'
networks:
- onlyoffice
volumes:
- ./onlyoffice:/tmp/onlyoffice
- ./run.sh:/run.sh
command: bash /run.sh
onlyoffice-document-server:
container_name: onlyoffice-document-server
image: onlyoffice/documentserver:latest
Expand Down
13 changes: 13 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -x

/usr/bin/owncloud server &> /tmp/server.log &
sleep 10 # owncloud should init itself before ability to enable app
cp -r /tmp/onlyoffice /var/www/owncloud/custom/
chown -R www-data:www-data /var/www/owncloud/custom/onlyoffice
occ --no-warnings app:enable onlyoffice
occ --no-warnings config:system:set onlyoffice DocumentServerUrl --value="/ds-vpath/"
occ --no-warnings config:system:set onlyoffice DocumentServerInternalUrl --value="http://onlyoffice-document-server/"
occ --no-warnings config:system:set onlyoffice StorageUrl --value="http://nginx-server/"
tail -f /tmp/server.log
13 changes: 0 additions & 13 deletions set_configuration.sh

This file was deleted.

0 comments on commit 4b19715

Please sign in to comment.