homeserver/docker-compose/nextcloud/misc.sh.j2

32 lines
1.1 KiB
Text
Raw Normal View History

2024-05-31 14:38:15 +02:00
#!/bin/bash
# Telefonregion
php occ config:system:set default_phone_region --value="DE"
# https://help.nextcloud.com/t/nextcloud-wont-load-any-mixed-content/13565/3
2024-05-31 14:57:35 +02:00
php occ config:system:set overwriteprotocol --value="https"
php occ config:system:set overwrite.cli.url --value="http://nextcloud.mgrote.net"
# https://docs.nextcloud.com/server/29/admin_manual/configuration_server/background_jobs_configuration.html
php occ config:system:set maintenance_window_start --type=integer --value=1
2024-05-31 15:25:58 +02:00
# disable unused apps
php occ app:disable dashboard firstrunwizard federation federatedfilesharing nextcloud_announcements recommendations circles survey_client user_status weather_status photos
# enable extra apps
2024-06-01 21:00:26 +02:00
php occ app:enable twofactor_totp calendar contacts checksum epubviewer dicomviewer impersonate metadata quota_warning event_update_notification
2024-05-31 15:25:58 +02:00
2024-06-01 22:48:03 +02:00
# cron
sudo -u www-data php occ background:cron
# tz
php occ config:system:set logtimezone --value="Europe/Berlin"
# status
echo Status
php occ status
php occ user:list
2024-05-31 15:25:58 +02:00
# adhoc: docker exec --user www-data nextcloud-app php occ config:system:set trusted_domains 2 --value=docker10.mgrote.net