2024-06-03 21:23:53 +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
|
|
|
|
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
|
|
|
|
|
|
|
|
# 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
|
|
|
|
php occ app:enable twofactor_totp calendar contacts checksum epubviewer dicomviewer impersonate metadata quota_warning event_update_notification
|
|
|
|
|
|
|
|
# cron
|
|
|
|
php occ background:cron
|
|
|
|
|
|
|
|
# tz
|
|
|
|
php occ config:system:set logtimezone --value="Europe/Berlin"
|
|
|
|
|
|
|
|
# mail
|
2024-07-30 23:05:24 +02:00
|
|
|
php occ config:system:set mail_from_address --value="nextcloud"
|
2024-06-03 21:23:53 +02:00
|
|
|
php occ config:system:set mail_smtpmode --value="smtp"
|
|
|
|
php occ config:system:set mail_sendmailmode --value="smtp"
|
2024-07-30 23:05:24 +02:00
|
|
|
php occ config:system:set mail_smtphost --value="postfix"
|
2024-06-03 21:23:53 +02:00
|
|
|
php occ config:system:set mail_smtpport --value="25"
|
|
|
|
|
2024-09-02 15:15:31 +02:00
|
|
|
# trashbin auto-delete, https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/trashbin_configuration.html
|
|
|
|
php occ config:system:set trashbin_retention_obligation --value="auto, 21"
|
|
|
|
|
2024-06-03 21:23:53 +02:00
|
|
|
# status
|
|
|
|
echo Status
|
|
|
|
php occ status
|
|
|
|
php occ user:list
|
|
|
|
|
2024-09-02 15:15:31 +02:00
|
|
|
# adhoc: docker exec --user www-data nextcloud-app php occ config:system:set trusted_domains 2 --value=docker10.mgrote.net
|