mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
Use package framework for installing ownCloud
This commit is contained in:
parent
a4be460538
commit
9b9d112927
@ -58,14 +58,6 @@ done
|
||||
|
||||
if [ "$owncloud_enable" != "$owncloud_enable_cur" ] ; then
|
||||
if $owncloud_enable ; then
|
||||
# Select postgresql as the backend database for OwnCloud, and
|
||||
# make sure its php support is enabled when owncloud is
|
||||
# installed.
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends \
|
||||
install -y postgresql php5-pgsql 2>&1 | logger -t owncloud-setup
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends \
|
||||
install -y owncloud 2>&1 | logger -t owncloud-setup
|
||||
|
||||
# Keep existing configuration if it exist
|
||||
if [ ! -e /etc/owncloud/config.php ] ; then
|
||||
# Set up postgresql database and user
|
||||
|
||||
@ -23,6 +23,7 @@ from gettext import gettext as _
|
||||
|
||||
from plinth import actions
|
||||
from plinth import cfg
|
||||
from plinth import package
|
||||
from plinth import service
|
||||
|
||||
|
||||
@ -47,6 +48,7 @@ def init():
|
||||
|
||||
|
||||
@login_required
|
||||
@package.required('postgresql', 'php5-pgsql', 'owncloud')
|
||||
def index(request):
|
||||
"""Serve the ownCloud configuration page"""
|
||||
status = get_status()
|
||||
|
||||
@ -27,14 +27,10 @@
|
||||
|
||||
<h2>ownCloud</h2>
|
||||
|
||||
<p>When enabled, the owncloud installation will be available
|
||||
<p>When enabled, the ownCloud installation will be available
|
||||
from <a href="/owncloud">/owncloud</a> path on the web server.
|
||||
Visit this URL to set up the initial administration account for
|
||||
owncloud.</p>
|
||||
|
||||
<p><strong>Note: Setting up owncloud for the first time might take
|
||||
5 minutes or more, depending on download bandwidth from the
|
||||
Debian APT sources.</strong></p>
|
||||
ownCloud.</p>
|
||||
|
||||
{{ form|bootstrap }}
|
||||
<input type="submit" class="btn btn-primary btn-md" value="Update setup"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user