diff --git a/.devcontainer/apps.config.php b/.devcontainer/apps.config.php new file mode 100644 index 0000000000000..986c3a4d66d6f --- /dev/null +++ b/.devcontainer/apps.config.php @@ -0,0 +1,15 @@ + array ( + 0 => array ( + 'path' => OC::$SERVERROOT.'/customapps', + 'url' => '/customapps', + 'writable' => true, + ), + 1 => array ( + 'path' => OC::$SERVERROOT.'/apps', + 'url' => '/apps', + 'writable' => true, + ), + ), +); diff --git a/.devcontainer/nmc.config.php b/.devcontainer/nmc.config.php new file mode 100644 index 0000000000000..acbb4cd1a7d96 --- /dev/null +++ b/.devcontainer/nmc.config.php @@ -0,0 +1,12 @@ + '/', + 'default_language' => 'de_DE', + 'integrity.check.disabled' => true, // not recommended for prod, but for customisation + # 'config_is_read_only' => true, + 'auth.authtoken.v1.disabled' => true, + 'sharing.force_share_accept' => true, + 'status-email-message-provider' => '\\OCA\\EmailTemplateExample\\MessageProvider', + 'mail_template_class' => 'OCA\\EmailTemplateExample\\EMailTemplate', + // "logfile_office_report" => "/var/log/nextcloud/office.log", +); \ No newline at end of file diff --git a/.devcontainer/nmcsetup.sh b/.devcontainer/nmcsetup.sh new file mode 100755 index 0000000000000..ba7ee23250d0b --- /dev/null +++ b/.devcontainer/nmcsetup.sh @@ -0,0 +1,37 @@ +#!/bin/bash +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" >/dev/null 2>&1 && pwd )" + +cd $DIR/ + +# after installation, do some MagentaCLOUD specific setups to start closer to production + +# customapps directory split +cp .devcontainer/apps.config.php config/apps.config.php +cp .devcontainer/nmc.config.php config/nmc.config.php + +# disable user themeing +sudo -u ${APACHE_RUN_USER} php occ theming:config disable-user-theming yes + +# fixed themeing for MagentaCLOUD +cp .devcontainer/theme.config.php config/theme.config.php + +# refresh .htaccess for short URL notation +sudo -u ${APACHE_RUN_USER} php occ maintenance:update:htaccess + +# "Organisational" setting +sudo -u ${APACHE_RUN_USER} php occ theming:config color "#e20074" # don't use uppercase letters! +sudo -u ${APACHE_RUN_USER} php occ theming:config name MagentaCLOUD +sudo -u ${APACHE_RUN_USER} php occ theming:config slogan "Alle Dateien sicher an einem Ort" +sudo -u ${APACHE_RUN_USER} php occ theming:config imprintUrl "http://www.telekom.de/impressum" +sudo -u ${APACHE_RUN_USER} php occ theming:config privacyUrl "https://static.magentacloud.de/Datenschutz" + +# app settings +sudo -u ${APACHE_RUN_USER} php occ config:app:set theming AndroidClientUrl --value \ + "https://play.google.com/store/apps/details?=com.t_systems.android.webdav" +sudo -u ${APACHE_RUN_USER} php occ config:app:set theming iTunesAppId --value "312838242" +sudo -u ${APACHE_RUN_USER} php occ config:app:set theming iOSClientUrl --value \ + "https://apps.apple.com/us/app/magentacloud-cloud-speicher/id312838242" + +# enable/disable apps +sudo -u ${APACHE_RUN_USER} php occ app:enable nmctheme +sudo -u ${APACHE_RUN_USER} php occ app:disable dashboard # may remove as soon as dashboard CR is implemented \ No newline at end of file diff --git a/.devcontainer/theme.config.php b/.devcontainer/theme.config.php new file mode 100644 index 0000000000000..208ab66f85637 --- /dev/null +++ b/.devcontainer/theme.config.php @@ -0,0 +1,5 @@ + 'default', // or any other theme contained in the app + 'theme' => '', // disable old themeing +); \ No newline at end of file