Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-04-11 18:23:53 +0300
committerAndras Timar <andras.timar@collabora.com>2016-04-11 18:23:53 +0300
commitd4fd4e532ead342d9ca383d8c7f359649866ade6 (patch)
treee73849eee0485bc09353d0620c22472b2f6b154e /owncloud-collabora-online.spec.in
parent357db668908685b0e98a7159d2515a71c8a1b0bf (diff)
set default WOPI Client URL for rpm
Diffstat (limited to 'owncloud-collabora-online.spec.in')
-rw-r--r--owncloud-collabora-online.spec.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/owncloud-collabora-online.spec.in b/owncloud-collabora-online.spec.in
index d1d59eb6..9285afc9 100644
--- a/owncloud-collabora-online.spec.in
+++ b/owncloud-collabora-online.spec.in
@@ -47,10 +47,12 @@ tar cf - . | (cd %{buildroot}/srv/www/htdocs/owncloud/apps/richdocuments && tar
%post
+IP=`/sbin/ifconfig | awk '/inet addr/{print substr($2,6)}' | grep -v 127.0.0.1 | head -1`
chown -R wwwrun:www /srv/www/htdocs/owncloud/apps
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ upgrade" wwwrun
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ config:system:set --value='\OC\Memcache\APCu' memcache.local" wwwrun
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ app:enable richdocuments" wwwrun
+su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ config:app:set --value='http://$IP:9980' richdocuments wopi_url" wwwrun
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ maintenance:mode --off" wwwrun
systemctl restart apache2.service