Compare commits
1 Commits
c05599b1fc
...
67a600396b
Author | SHA1 | Date | |
---|---|---|---|
67a600396b |
@ -9,22 +9,28 @@ fi
|
|||||||
|
|
||||||
# for updating from old docker container
|
# for updating from old docker container
|
||||||
if [ -d /home/wikindx/core ]; then
|
if [ -d /home/wikindx/core ]; then
|
||||||
|
echo -n "found application in config directory ..."
|
||||||
mv /home/wikindx/config.php /tmp/
|
mv /home/wikindx/config.php /tmp/
|
||||||
rm /home/wikindx/* -rf
|
rm /home/wikindx/* -rf
|
||||||
mv /tmp/config.php /home/wikindx/config.php
|
mv /tmp/config.php /home/wikindx/config.php
|
||||||
chown -R www-data.www-data /home/wikindx
|
chown -R www-data.www-data /home/wikindx
|
||||||
|
echo "removed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make sure a configuration file exists
|
# make sure a configuration file exists
|
||||||
if [ ! -e /home/wikindx/config.php ]; then
|
if [ ! -e /home/wikindx/config.php ]; then
|
||||||
|
echo "no configuration file yet exist ..."
|
||||||
cp /var/www/html/config.php.dist /home/wikindx/config.php
|
cp /var/www/html/config.php.dist /home/wikindx/config.php
|
||||||
chown -R www-data.www-data /home/wikindx
|
chown -R www-data.www-data /home/wikindx
|
||||||
|
echo "created"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# make sure configuration file is linked to application directory
|
# make sure configuration file is linked to application directory
|
||||||
if [ ! -e /var/www/html/config.php ]; then
|
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/config.php
|
||||||
chown -R www-data.www-data /var/www/html/wikindx
|
chown -R www-data.www-data /var/www/html/wikindx
|
||||||
|
echo "created"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker-php-entrypoint apache2-foreground
|
docker-php-entrypoint apache2-foreground
|
||||||
|
Loading…
Reference in New Issue
Block a user