Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
791e68a3
Commit
791e68a3
authored
Aug 12, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
automate more of the initial configuration
parent
4d64246b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
README.md
README.md
+1
-3
owncloud.sh
setup/owncloud.sh
+22
-4
No files found.
README.md
View file @
791e68a3
...
...
@@ -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://<your domain>.<tld>/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://<your domain>.<tld>/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
...
...
setup/owncloud.sh
100644 → 100755
View file @
791e68a3
...
...
@@ -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
<<
EOF
;
instanceid
=
oc
$(
echo
$PRIMARY_HOSTNAME
|
sha1sum
|
fold
-w
10 |
head
-n
1
)
passwordsalt
=
$(
dd
if
=
/dev/random
bs
=
40
count
=
1 2>/dev/null |
sha1sum
|
fold
-w
30 |
head
-n
1
)
cat
-
>
/usr/local/lib/owncloud/config/config.php
<<
EOF
;
<?php
\$
CONFIG = array (
'___installed' => 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment