mirror of
https://github.com/linuxserver/docker-phpmyadmin.git
synced 2026-02-20 08:40:43 +08:00
Add support for custom themes
This commit is contained in:
parent
bc55d96f8e
commit
932d42308c
@ -232,6 +232,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **06.09.23:** - Add support for custom themes.
|
||||
* **25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.
|
||||
* **13.04.23:** - Move ssl.conf include to default.conf.
|
||||
* **20.01.23:** - Rebase to alpine 3.17 with php8.1.
|
||||
|
||||
@ -46,6 +46,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "06.09.23:", desc: "Add support for custom themes." }
|
||||
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
|
||||
- { date: "13.04.23:", desc: "Move ssl.conf include to default.conf." }
|
||||
- { date: "20.01.23:", desc: "Rebase to alpine 3.17 with php8.1." }
|
||||
|
||||
@ -20,6 +20,18 @@ if [ ! -f /config/phpmyadmin/config.inc.php ]; then
|
||||
cp /defaults/config.inc.php /config/phpmyadmin/config.inc.php
|
||||
fi
|
||||
|
||||
# Set up themes
|
||||
if [[ -d "/config/themes" && ! -L "/app/www/public/themes" ]]; then
|
||||
cp -R /app/www/public/themes/* /config/themes
|
||||
rm -rf "/app/www/public/themes"
|
||||
fi
|
||||
if [[ ! -d "/config/themes" && ! -L "/app/www/public/themes" ]]; then
|
||||
mv "/app/www/public/themes" /config/themes
|
||||
fi
|
||||
if [[ -d "/config/themes" && ! -L "/app/www/public/themes" ]]; then
|
||||
ln -s "/config/themes" "/app/www/public/themes"
|
||||
fi
|
||||
|
||||
# permissions
|
||||
lsiown -R abc:abc \
|
||||
/config \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user