diff --git a/README.md b/README.md index c5dfb496..cc34ff59 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,7 @@ Then run the post-install checklist command to see what you need to do next: In addition to above once finished you need to: - Goto https://./cloud, and make an ownCloud admin account. By default you don't need to edit the advanced settings - Once logged in, click the "Files" link beside the cloud in the top left corner and then click Apps button - Goto the "External user support" and activate it, do the same thing with the mail app + Goto https://./cloud, and make an ownCloud admin account. Don't edit the advanced settings. Congratulations! You should now have a working setup. Feel free to login with your mail credentials created earlier in the setup diff --git a/setup/owncloud.sh b/setup/owncloud.sh old mode 100644 new mode 100755 index a1ee73c7..de196f0f --- a/setup/owncloud.sh +++ b/setup/owncloud.sh @@ -23,12 +23,27 @@ fi # Create a configuration file. TIMEZONE=`cat /etc/timezone` -if [ ! -f "/usr/local/lib/owncloud/config/config.php" ]; then - cat - > /usr/local/lib/owncloud/config/config.php </dev/null | sha1sum | fold -w 30 | head -n 1) +cat - > /usr/local/lib/owncloud/config/config.php < true, + + 'version' => '7.0.1.1', + 'datadirectory' => '$STORAGE_ROOT/owncloud', + 'dbtype' => 'sqlite3', + + 'instanceid' => '$instanceid', + 'passwordsalt' => '$passwordsalt', + 'trusted_domains' => + array ( + 0 => '$PRIMARY_HOSTNAME', + ), + + 'overwritewebroot' => '/cloud', 'user_backends' => array( array( 'class'=>'OC_User_IMAP', @@ -52,7 +67,6 @@ if [ ! -f "/usr/local/lib/owncloud/config/config.php" ]; then ); ?> EOF -fi # Set permissions mkdir -p $STORAGE_ROOT/owncloud @@ -63,7 +77,7 @@ chown -R www-data.www-data $STORAGE_ROOT/owncloud /usr/local/lib/owncloud if [ ! -d /usr/local/lib/owncloud/apps/mail ]; then rm -f /tmp/owncloud_mail.zip wget -qO /tmp/owncloud_mail.zip https://github.com/owncloud/mail/archive/master.zip - unzip /tmp/owncloud_mail.zip -d /usr/local/lib/owncloud/apps + unzip -q /tmp/owncloud_mail.zip -d /usr/local/lib/owncloud/apps mv /usr/local/lib/owncloud/apps/mail-master /usr/local/lib/owncloud/apps/mail rm -f /tmp/owncloud.zip fi @@ -77,5 +91,9 @@ chmod -R 777 /usr/local/lib/owncloud/apps/mail/vendor/ezyang/htmlpurifier/librar # TODO: somehow change the cron option in ownClouds config, not exposed afaik? (crontab -u www-data -l; echo "*/15 * * * * php -f /usr/local/lib/owncloud/cron.php" ) | crontab -u www-data - +# Enable apps. +hide_output php /usr/local/lib/owncloud/console.php app:enable user_external +hide_output php /usr/local/lib/owncloud/console.php app:enable mail + php5enmod imap restart_service php5-fpm