build files for making podman containers
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.
 
 

33 lines
1.1 KiB

#!/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 "/srv/nextcloud/data/" --database "pgsql" --database-host "/var/run/postgresql" --database-name "$DBNAME" --database-user "$DBUSER" --database-pass "" --admin-user "admin" --admin-pass "admin"
# do post-installation steps
nc-occ maintenance:update:htaccess
nc-occ db:add-missing-indices
nc-occ db:add-missing-columns
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
# set calendar to refresh subscriptions once a day (to set to one hour use 'PT1H' instead)
nc-occ config:app:set dav calendarSubscriptionRefreshRate --value P1D