Install example configs as /etc/davical/config.php and /etc/apache2/sites-available/davical.conf

This commit is contained in:
Florian Schlichting 2017-01-23 23:03:57 +01:00
parent 0f28e186c4
commit 3ca2801059
5 changed files with 8 additions and 11 deletions

12
debian/README.Debian vendored
View File

@ -21,19 +21,11 @@ Don't forget to restart postgres for the change to take effect!
sudo -u postgres /usr/share/davical/dba/create-database.sh
3. Create an Apache vhost config (e.g. from examples/apache-davical.conf),
3. Review and activate the default Apache config ('a2ensite davical'),
or symlink /usr/share/davical/htdocs somewhere below an existing vhost's
document root.
4. Create /etc/davical/config.php containing at least the lines
<?php
$c->pg_connect[] = 'dbname=davical user=davical_app';
?>
See example-config.php and the other config snippets in the examples
directory, as well as the DAViCal website and wiki, for a wealth of
possible customizations.
4. Customize /etc/davical/config.php if you want.
5. Point your browser to /setup.php (or wherever you symlinked the
htdocs directory in step 3), log in as user admin with the password

1
debian/control vendored
View File

@ -6,6 +6,7 @@ Uploaders: Andrew McMillan <awm@debian.org>,
Florian Schlichting <fsfs@debian.org>
Standards-Version: 3.9.8
Build-Depends: debhelper (>= 9),
dh-exec,
libawl-php (>= 0.57-1~), libawl-php (<< 0.58),
gettext,
php-apigen,

1
debian/davical.dirs vendored
View File

@ -1 +0,0 @@
etc/davical/

3
debian/davical.install vendored Normal file → Executable file
View File

@ -1,4 +1,7 @@
#! /usr/bin/dh-exec
dba htdocs inc locale usr/share/davical
config/apache-davical.conf => etc/apache2/sites-available/davical.conf
config/example-config.php => etc/davical/config.php
config/* usr/share/doc/davical/examples
scripts/*.php usr/share/davical/scripts
scripts/davical-cli usr/share/davical/scripts

2
debian/rules vendored
View File

@ -16,4 +16,6 @@ override_dh_auto_build:
override_dh_installchangelogs:
dh_installchangelogs ChangeLog
rm debian/davical/usr/share/davical/htdocs/.htaccess || true
rm -f debian/davical/usr/share/doc/davical/examples/apache-davical.conf \
debian/davical/usr/share/doc/davical/examples/example-config.php