Compare commits

..

1 Commits

Author SHA1 Message Date
b3b8816259
ADD: divided application and configuration directory 2021-06-05 13:24:58 +02:00
2 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,8 @@ RUN echo "mysqli.default_socket = /var/run/mysqld/mysqld.sock" >> /usr/local/etc
VOLUME ["/var/lib/mysql"]
VOLUME ["/home/wikindx"]
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
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
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/wikindx/config.php
ln -s /home/wikindx/config.php /var/www/html/config.php
chown -R www-data.www-data /var/www/html/wikindx
echo "created"
fi