mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-02 07:05:42 +00:00
initial commit
This commit is contained in:
12
piwik/run.sh
Normal file
12
piwik/run.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
addgroup -g ${GID} piwik && adduser -h /piwik -s /bin/sh -D -G piwik -u ${UID} piwik
|
||||
|
||||
if [ -f /piwik/config/config.ini.php ] && [ ! -f /config/config.ini.php ]; then
|
||||
cp /piwik/config/config.ini.php /config/config.ini.php
|
||||
elif [ -f /config/config.ini.php ]; then
|
||||
mv /piwik/config/config.ini.php /config/config.ini.php.bkp
|
||||
cp /config/config.ini.php /piwik/config/config.ini.php
|
||||
fi
|
||||
|
||||
chown -R piwik:piwik /piwik /config /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||
supervisord -c /usr/local/etc/supervisord.conf
|
Reference in New Issue
Block a user