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
76dba1a5
Commit
76dba1a5
authored
Jul 17, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the ownCloud upgrade must be run after apps are (re-)enabled after an upgrade
parent
f7298a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
owncloud.sh
setup/owncloud.sh
+10
-1
No files found.
setup/owncloud.sh
View file @
76dba1a5
...
@@ -31,6 +31,7 @@ if [ ! -f $STORAGE_ROOT/owncloud/config.php ] \
...
@@ -31,6 +31,7 @@ if [ ! -f $STORAGE_ROOT/owncloud/config.php ] \
fi
fi
# Check if ownCloud dir exist, and check if version matches owncloud_ver (if either doesn't - install/upgrade)
# Check if ownCloud dir exist, and check if version matches owncloud_ver (if either doesn't - install/upgrade)
DID_OWNCLOUD_UPGRADE
=
0
if
[
!
-d
/usr/local/lib/owncloud/
]
\
if
[
!
-d
/usr/local/lib/owncloud/
]
\
||
!
grep
-q
$owncloud_ver
/usr/local/lib/owncloud/version.php
;
then
||
!
grep
-q
$owncloud_ver
/usr/local/lib/owncloud/version.php
;
then
...
@@ -66,8 +67,9 @@ if [ ! -d /usr/local/lib/owncloud/ ] \
...
@@ -66,8 +67,9 @@ if [ ! -d /usr/local/lib/owncloud/ ] \
# that error.
# that error.
chown
-f
-R
www-data.www-data
$STORAGE_ROOT
/owncloud /usr/local/lib/owncloud
chown
-f
-R
www-data.www-data
$STORAGE_ROOT
/owncloud /usr/local/lib/owncloud
# Run the upgrade script
(if ownCloud is already up-to-date it wont matter)
.
# Run the upgrade script.
hide_output
sudo
-u
www-data php /usr/local/lib/owncloud/occ upgrade
hide_output
sudo
-u
www-data php /usr/local/lib/owncloud/occ upgrade
DID_OWNCLOUD_UPGRADE
=
1
fi
fi
# ### Configuring ownCloud
# ### Configuring ownCloud
...
@@ -156,6 +158,13 @@ hide_output sudo -u www-data php /usr/local/lib/owncloud/console.php app:enable
...
@@ -156,6 +158,13 @@ hide_output sudo -u www-data php /usr/local/lib/owncloud/console.php app:enable
hide_output
sudo
-u
www-data php /usr/local/lib/owncloud/console.php app:enable contacts
hide_output
sudo
-u
www-data php /usr/local/lib/owncloud/console.php app:enable contacts
hide_output
sudo
-u
www-data php /usr/local/lib/owncloud/console.php app:enable calendar
hide_output
sudo
-u
www-data php /usr/local/lib/owncloud/console.php app:enable calendar
if
[
$DID_OWNCLOUD_UPGRADE
-gt
0
]
;
then
# When upgrading, run the upgrade script again now that apps are enabled. It seems like
# the first upgrade at the top won't work because apps may be disabled during upgrade?
# This command will fail if there's nothing to upgrade.
hide_output
sudo
-u
www-data php /usr/local/lib/owncloud/occ upgrade
fi
# Set PHP FPM values to support large file uploads
# Set PHP FPM values to support large file uploads
# (semicolon is the comment character in this file, hashes produce deprecation warnings)
# (semicolon is the comment character in this file, hashes produce deprecation warnings)
tools/editconf.py /etc/php5/fpm/php.ini
-c
';'
\
tools/editconf.py /etc/php5/fpm/php.ini
-c
';'
\
...
...
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