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
d02f800d
Commit
d02f800d
authored
Aug 16, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ownCloud: enable memcached properly
parent
83d3643e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
CHANGELOG.md
CHANGELOG.md
+1
-1
owncloud.sh
setup/owncloud.sh
+17
-1
system.sh
setup/system.sh
+1
-1
No files found.
CHANGELOG.md
View file @
d02f800d
...
@@ -20,7 +20,7 @@ System:
...
@@ -20,7 +20,7 @@ System:
*
Backups can now be turned off, or stored in Amazon S3, through new control panel options.
*
Backups can now be turned off, or stored in Amazon S3, through new control panel options.
*
Munin was not working on machines confused about their hostname.
*
Munin was not working on machines confused about their hostname.
*
SSL certificate checks were failing on OVH/OpenVZ servers due to missing /dev/stdin.
*
SSL certificate checks were failing on OVH/OpenVZ servers due to missing /dev/stdin.
*
ownCloud updated to version 8.1.1.
*
ownCloud updated to version 8.1.1
, its memcached caching enabled
.
*
When upgrading, network checks like blocked port 25 are now skipped.
*
When upgrading, network checks like blocked port 25 are now skipped.
*
Tweaks to the intrusion detection rules for IMAP.
*
Tweaks to the intrusion detection rules for IMAP.
*
Improve the sort order of the domains in the status checks.
*
Improve the sort order of the domains in the status checks.
...
...
setup/owncloud.sh
View file @
d02f800d
...
@@ -10,7 +10,7 @@ source /etc/mailinabox.conf # load global vars
...
@@ -10,7 +10,7 @@ source /etc/mailinabox.conf # load global vars
apt_install
\
apt_install
\
dbconfig-common
\
dbconfig-common
\
php5-cli php5-sqlite php5-gd php5-imap php5-curl php-pear php-apc curl libapr1 libtool libcurl4-openssl-dev php-xml-parser
\
php5-cli php5-sqlite php5-gd php5-imap php5-curl php-pear php-apc curl libapr1 libtool libcurl4-openssl-dev php-xml-parser
\
php5 php5-dev php5-gd php5-fpm memcached php5-memcache unzip
php5 php5-dev php5-gd php5-fpm memcached php5-memcache
d
unzip
apt-get purge
-qq
-y
owncloud
*
apt-get purge
-qq
-y
owncloud
*
...
@@ -102,6 +102,7 @@ if [ ! -f $STORAGE_ROOT/owncloud/owncloud.db ]; then
...
@@ -102,6 +102,7 @@ if [ ! -f $STORAGE_ROOT/owncloud/owncloud.db ]; then
'arguments'=>array('{localhost:993/imap/ssl/novalidate-cert}')
'arguments'=>array('{localhost:993/imap/ssl/novalidate-cert}')
)
)
),
),
'memcache.local' => '
\\
OC
\\
Memcache
\\
Memcached',
"memcached_servers" => array (
"memcached_servers" => array (
array('localhost', 11211),
array('localhost', 11211),
),
),
...
@@ -148,6 +149,21 @@ EOF
...
@@ -148,6 +149,21 @@ EOF
(
cd
/usr/local/lib/owncloud
;
sudo
-u
www-data php /usr/local/lib/owncloud/index.php
;
)
(
cd
/usr/local/lib/owncloud
;
sudo
-u
www-data php /usr/local/lib/owncloud/index.php
;
)
fi
fi
# Update existing configuration files with changed settings that weren't included in
# previous versions of Mail-in-a-Box. Use PHP to read the settings file, modify it,
# and write out the new settings array.
CONFIG_TEMP
=
$(
/bin/mktemp
)
php
<<
EOF
>
$CONFIG_TEMP
&& mv
$CONFIG_TEMP
$STORAGE_ROOT
/owncloud/config.php;
<?php
include("
$STORAGE_ROOT
/owncloud/config.php");
\$
CONFIG['memcache.local'] = '
\\
OC
\\
Memcache
\\
Memcached';
echo "<?php
\n\\\$
CONFIG = ";
var_export(
\$
CONFIG);
echo ";";
?>
EOF
chown
www-data.www-data
$STORAGE_ROOT
/owncloud/config.php
# Enable/disable apps. Note that this must be done after the ownCloud setup.
# Enable/disable apps. Note that this must be done after the ownCloud setup.
# The firstrunwizard gave Josh all sorts of problems, so disabling that.
# The firstrunwizard gave Josh all sorts of problems, so disabling that.
# user_external is what allows ownCloud to use IMAP for login. The contacts
# user_external is what allows ownCloud to use IMAP for login. The contacts
...
...
setup/system.sh
View file @
d02f800d
...
@@ -48,7 +48,7 @@ apt_get_quiet upgrade
...
@@ -48,7 +48,7 @@ apt_get_quiet upgrade
# * netcat-openbsd: `nc` command line networking tool
# * netcat-openbsd: `nc` command line networking tool
# * git: we install some things directly from github
# * git: we install some things directly from github
# * sudo: allows privileged users to execute commands as root without being root
# * sudo: allows privileged users to execute commands as root without being root
# * coreutils: includes `nproc` tool to report number of processors
# * coreutils: includes `nproc` tool to report number of processors
, mktemp
# * bc: allows us to do math to compute sane defaults
# * bc: allows us to do math to compute sane defaults
apt_install python3 python3-dev python3-pip
\
apt_install python3 python3-dev python3-pip
\
...
...
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