|
| 1 | +#!/bin/bash |
| 2 | +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" >/dev/null 2>&1 && pwd )" |
| 3 | + |
| 4 | +cd $DIR/ |
| 5 | + |
| 6 | +# after installation, do some MagentaCLOUD specific setups to start closer to production |
| 7 | + |
| 8 | +# customapps directory split |
| 9 | +cp .devcontainer/apps.config.php config/apps.config.php |
| 10 | +cp .devcontainer/nmc.config.php config/nmc.config.php |
| 11 | + |
| 12 | +# disable user themeing |
| 13 | +sudo -u ${APACHE_RUN_USER} php occ theming:config disable-user-theming yes |
| 14 | + |
| 15 | +# fixed themeing for MagentaCLOUD |
| 16 | +cp .devcontainer/theme.config.php config/theme.config.php |
| 17 | + |
| 18 | +# refresh .htaccess for short URL notation |
| 19 | +sudo -u ${APACHE_RUN_USER} php occ maintenance:update:htaccess |
| 20 | + |
| 21 | +# "Organisational" setting |
| 22 | +sudo -u ${APACHE_RUN_USER} php occ theming:config color "#e20074" # don't use uppercase letters! |
| 23 | +sudo -u ${APACHE_RUN_USER} php occ theming:config name MagentaCLOUD |
| 24 | +sudo -u ${APACHE_RUN_USER} php occ theming:config slogan "Alle Dateien sicher an einem Ort" |
| 25 | +sudo -u ${APACHE_RUN_USER} php occ theming:config imprintUrl "http://www.telekom.de/impressum" |
| 26 | +sudo -u ${APACHE_RUN_USER} php occ theming:config privacyUrl "https://static.magentacloud.de/Datenschutz" |
| 27 | + |
| 28 | +# app settings |
| 29 | +sudo -u ${APACHE_RUN_USER} php occ config:app:set theming AndroidClientUrl --value \ |
| 30 | + "https://play.google.com/store/apps/details?=com.t_systems.android.webdav" |
| 31 | +sudo -u ${APACHE_RUN_USER} php occ config:app:set theming iTunesAppId --value "312838242" |
| 32 | +sudo -u ${APACHE_RUN_USER} php occ config:app:set theming iOSClientUrl --value \ |
| 33 | + "https://apps.apple.com/us/app/magentacloud-cloud-speicher/id312838242" |
| 34 | + |
| 35 | +# enable/disable apps |
| 36 | +sudo -u ${APACHE_RUN_USER} php occ app:enable nmctheme |
| 37 | +sudo -u ${APACHE_RUN_USER} php occ app:disable dashboard # may remove as soon as dashboard CR is implemented |
| 38 | + |
| 39 | +# there are side effects when using devcontainer and |
| 40 | +# doing the main settings via webapp. For the moment, the best |
| 41 | +# workaround is to lock config and avoid overwrite by nextcloud |
| 42 | +# esp. on container rebuild |
| 43 | +cp .devcontainer/lock.config.php config/lock.config.php |
0 commit comments