Use package framework for installing ownCloud

This commit is contained in:
Sunil Mohan Adapa 2014-12-21 17:24:11 +05:30
parent a4be460538
commit 9b9d112927
3 changed files with 4 additions and 14 deletions

View File

@ -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

View File

@ -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()

View File

@ -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"/>