Fix paths in scripts
This commit is contained in:
parent
d9fc67b79b
commit
b71ecb4f34
2 changed files with 12 additions and 7 deletions
|
@ -35,6 +35,16 @@ RUN rm /var/www/owncloud-${OWNCLOUD_VER}.tar.bz2 \
|
|||
/var/www/owncloud/.user.ini
|
||||
RUN rmdir /var/www/owncloud
|
||||
|
||||
# Provision data
|
||||
RUN mkdir -p /provision/owncloud
|
||||
RUN cp -r /var/www/apps /provision/owncloud
|
||||
RUN cp -r /var/www/config /provision/owncloud
|
||||
RUN rm -rf /var/www/apps \
|
||||
/var/www/config
|
||||
RUN ln -s /data/owncloud/config /var/www
|
||||
RUN ln -s /data/owncloud/apps /var/www
|
||||
RUN ln -s /data/owncloud/data /var/www
|
||||
|
||||
EXPOSE 80
|
||||
VOLUME ["/data"]
|
||||
|
||||
|
|
|
@ -8,14 +8,9 @@ function first_run() {
|
|||
/data/owncloud/data \
|
||||
/data/nginx-log
|
||||
|
||||
cp -r /var/www/apps /data/owncloud
|
||||
cp -r /var/www/config /data/owncloud
|
||||
cp -r /provision/owncloud/apps /data/owncloud
|
||||
cp -r /provision/owncloud/config /data/owncloud
|
||||
cp -r /var/lib/mysql /data
|
||||
rm -rf /var/www/apps \
|
||||
/var/www/config
|
||||
ln -s /data/owncloud/config /var/www
|
||||
ln -s /data/owncloud/apps /var/www
|
||||
ln -s /data/owncloud/data /var/www
|
||||
|
||||
chown -R www-data:www-data /data/owncloud /var/www
|
||||
chown -R mysql:mysql /data/mysql
|
||||
|
|
Loading…
Reference in a new issue