mirror of
https://github.com/linuxserver/docker-phpmyadmin.git
synced 2026-01-20 20:22:40 +08:00
11 lines
303 B
Plaintext
11 lines
303 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
DEFAULT_CONF="/config/nginx/site-confs/default.conf"
|
|
OLD_ROOT="root /app/phpmyadmin;"
|
|
NEW_ROOT="root /app/www/public;"
|
|
|
|
if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
|
|
echo "updating root in ${DEFAULT_CONF}"
|
|
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
|
|
fi
|