Compare commits

..

1 Commits

Author SHA1 Message Date
Dominik Meyer b98fdcfd76
ADD: divided application and configuration directory 2021-06-05 13:36:15 +02:00
1 changed files with 7 additions and 1 deletions

View File

@ -26,8 +26,14 @@ if [ ! -e /home/wikindx/config.php ]; then
echo "created"
fi
# make sure application is unpacked
if [ ! -e /var/www/html/wikindx/index.php ]; then
cd /var/www/html
tar jxf wikindx.tar.bz2
fi
# make sure configuration file is linked to application directory
if [ ! -e /var/www/html/config.php ]; then
if [ ! -e /var/www/html/wikindx/config.php ]; then
echo "No link to configuration found in application directory ..."
ln -s /home/wikindx/config.php /var/www/html/wikindx/config.php
chown -R www-data.www-data /var/www/html/wikindx