From bab1e75c59dd49e052edbd7ff10c8b30db25a459 Mon Sep 17 00:00:00 2001 From: Josh Harmon Date: Sun, 24 Jul 2016 17:49:12 -0700 Subject: [PATCH] Remove references to autoconfig files --- setup/web.sh | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/setup/web.sh b/setup/web.sh index 6a412b98..f82b9a02 100755 --- a/setup/web.sh +++ b/setup/web.sh @@ -55,29 +55,6 @@ tools/editconf.py /etc/php5/fpm/pool.d/www.conf -c ';' \ # since it depends on what domains we're serving, which we don't know # until mail accounts have been created. -# Create the iOS/OS X Mobile Configuration file which is exposed via the -# nginx configuration at /mailinabox-mobileconfig. -mkdir -p /var/lib/mailinabox -chmod a+rx /var/lib/mailinabox -cat conf/ios-profile.xml \ - | sed "s/PRIMARY_HOSTNAME/$PRIMARY_HOSTNAME/" \ - | sed "s/UUID1/$(cat /proc/sys/kernel/random/uuid)/" \ - | sed "s/UUID2/$(cat /proc/sys/kernel/random/uuid)/" \ - | sed "s/UUID3/$(cat /proc/sys/kernel/random/uuid)/" \ - | sed "s/UUID4/$(cat /proc/sys/kernel/random/uuid)/" \ - > /var/lib/mailinabox/mobileconfig.xml -chmod a+r /var/lib/mailinabox/mobileconfig.xml - -# Create the Mozilla Auto-configuration file which is exposed via the -# nginx configuration at /.well-known/autoconfig/mail/config-v1.1.xml. -# The format of the file is documented at: -# https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat -# and https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration/FileFormat/HowTo. -cat conf/mozilla-autoconfig.xml \ - | sed "s/PRIMARY_HOSTNAME/$PRIMARY_HOSTNAME/" \ - > /var/lib/mailinabox/mozilla-autoconfig.xml -chmod a+r /var/lib/mailinabox/mozilla-autoconfig.xml - # make a default homepage if [ -d $STORAGE_ROOT/www/static ]; then mv $STORAGE_ROOT/www/static $STORAGE_ROOT/www/default; fi # migration #NODOC mkdir -p $STORAGE_ROOT/www/default