Compare commits

..

1 Commits

Author SHA1 Message Date
Dominik Meyer 6127283c37
ADD: divided application and configuration directory 2021-06-05 13:32:08 +02:00
2 changed files with 2 additions and 4 deletions

View File

@ -24,8 +24,6 @@ RUN echo "mysqli.default_socket = /var/run/mysqld/mysqld.sock" >> /usr/local/etc
VOLUME ["/var/lib/mysql"]
VOLUME ["/home/wikindx"]
RUN mkdir -p /home/wikindx
RUN wget -O wikindx.tar.bz2 https://phoenixnap.dl.sourceforge.net/project/wikindx/6.4.9/wikindx_6.4.9.tar.bz2
RUN tar jxf wikindx.tar.bz2
RUN wget -O wikindx.tar.bz2 https://phoenixnap.dl.sourceforge.net/project/wikindx/6.4.9/wikindx_6.4.9.tar.bz2;tar jxf wikindx.tar.bz2
ENTRYPOINT ["docker-entrypoint-wikindx"]

View File

@ -29,7 +29,7 @@ fi
# make sure configuration file is linked to application directory
if [ ! -e /var/www/html/config.php ]; then
echo "No link to configuration found in application directory ..."
ln -s /home/wikindx/config.php /var/www/html/config.php
ln -s /home/wikindx/config.php /var/www/html/wikindx/config.php
chown -R www-data.www-data /var/www/html/wikindx
echo "created"
fi