diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 7fc3afaf011d53afcd729b464c538884d3d560bb..4117fa48c6f0de7261b8ba3e64593f7b5a981493 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -75,6 +75,10 @@ mkdir -p "/mnt/repo-base/volumes/nextcloud/data/rainloop-storage/_data_/_default echo "$ADD_DOMAINS" | tr "," "\n" | while read add_domain; do cp "templates/rainloop/domain-config.ini" "/mnt/repo-base/volumes/nextcloud/data/rainloop-storage/_data_/_default_/domains/$add_domain.ini" done + +mkdir "/mnt/repo-base/volumes/nextcloud/data/rainloop-storage/_data_/_default_/configs/" +cat templates/rainloop/application.ini | sed "s/@@@DOMAIN@@@/$DOMAIN/g" > "/mnt/repo-base/volumes/nextcloud/data/rainloop-storage/_data_/_default_/configs/application.ini" + chown www-data:www-data /mnt/repo-base/volumes/nextcloud/ -R echo "Creating postfix database schema" diff --git a/templates/rainloop/application.ini b/templates/rainloop/application.ini new file mode 100644 index 0000000000000000000000000000000000000000..486ec0c66030c0f43467b56ee858e71bc67941b2 --- /dev/null +++ b/templates/rainloop/application.ini @@ -0,0 +1,7 @@ +[webmail] +title = "Email - /e/" +theme = "Clear" + +[login] +default_domain = "@@@DOMAIN@@@" +