LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libreOnline_install of Package owncloud-collabora-online (Project home:Kenzy:packages)

#!/usr/bin/bash

chown -R apache. /var/www/html/owncloud

IP=`ifconfig | awk '/inet /{print substr($2,1)}' | grep -v 127.0.0.1 | head -1`
su -s /bin/bash -c "php /var/www/html/owncloud/occ upgrade" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='\OC\Memcache\APCu' memcache.local" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='\OC\Memcache\APCu' memcache.distributed" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='\OC\Memcache\APCu' memcache.locking" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='array('host' => 'localhost', 'port' => 6379)' redis" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ app:enable richdocuments" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:app:set --value='http://$IP:9980' richdocuments wopi_url" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='true' forcessl" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='true' forceSSLforSubdomains" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value=10 preview_max_scale_factor" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value=50 preview_max_filesize_image" apache
su -s /bin/bash -c "php /var/www/html/owncloud/occ maintenance:mode --off" apache

systemctl restart httpd

exit 0