You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1018 B
32 lines
1018 B
#!/bin/bash
|
|
|
|
# fail if any command returns error
|
|
set -e
|
|
set -x
|
|
# wait 5 seconds to make sure all services have finished starting up
|
|
sleep 5
|
|
|
|
# make database for nextcloud
|
|
db-make
|
|
|
|
# install nextcloud
|
|
nc-occ maintenance:install --data-dir "/vol/files/" --database "pgsql" --database-host "/var/run/postgresql" --database-name "$DBNAME" --database-user "$DBUSER" --database-pass "" --admin-user "admin" --admin-pass "admin"
|
|
|
|
# configure nextcloud
|
|
nc-occ maintenance:update:htaccess
|
|
nc-occ db:add-missing-indices
|
|
nc-occ db:convert-filecache-bigint
|
|
|
|
# install extra apps we want
|
|
nc-occ app:install calendar
|
|
nc-occ app:install contacts
|
|
nc-occ app:install notes
|
|
nc-occ app:install bookmarks
|
|
nc-occ app:install mail
|
|
|
|
# disable apps we don't want
|
|
nc-occ app:disable comments federation files_trashbin files_versions firstrunwizard recommendations support survey_client systemtags
|
|
|
|
# configure apps
|
|
# currently set to one day; to set to one hour use 'PT1H'
|
|
nc-occ config:app:set dav calendarSubscriptionRefreshRate --value P1D
|
|
|