Skip to content
Snippets Groups Projects
Commit 00783734 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Auto upgrade owncloud

parent 258617fd
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ RUN echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community
curl -L http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key | apt-key add - && \
apt-get update && apt-get install -y \
owncloud \
sudo \
php5-imap && \
apt-get install -y --no-install-recommends \
libreoffice && \
......
......@@ -6,6 +6,13 @@
if [ -f /var/www/owncloud/config/config.php ]
then
echo ">> owncloud already configured - skipping initialization"
## Update Database if this is run after an update
echo ">> update database if necessary"
cd /var/www/owncloud
chmod o+x occ
/opt/mysql-check.sh
sudo -u www-data ./occ upgrade || (( $? == 3 ))
cd -
exit 0
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment