File tree Expand file tree Collapse file tree
root/etc/s6-overlay/s6-rc.d/init-phpmyadmin-config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
232232
233233## Versions
234234
235+ * ** 06.09.23:** - Add support for custom themes.
235236* ** 25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.
236237* ** 13.04.23:** - Move ssl.conf include to default.conf.
237238* ** 20.01.23:** - Rebase to alpine 3.17 with php8.1.
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ app_setup_block: |
4646
4747# changelog
4848changelogs :
49+ - { date: "06.09.23:", desc: "Add support for custom themes." }
4950 - { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
5051 - { date: "13.04.23:", desc: "Move ssl.conf include to default.conf." }
5152 - { date: "20.01.23:", desc: "Rebase to alpine 3.17 with php8.1." }
Original file line number Diff line number Diff line change @@ -20,6 +20,18 @@ if [ ! -f /config/phpmyadmin/config.inc.php ]; then
2020 cp /defaults/config.inc.php /config/phpmyadmin/config.inc.php
2121fi
2222
23+ # Set up themes
24+ if [[ -d "/config/themes" && ! -L "/app/www/public/themes" ]]; then
25+ cp -R /app/www/public/themes/* /config/themes
26+ rm -rf "/app/www/public/themes"
27+ fi
28+ if [[ ! -d "/config/themes" && ! -L "/app/www/public/themes" ]]; then
29+ mv "/app/www/public/themes" /config/themes
30+ fi
31+ if [[ -d "/config/themes" && ! -L "/app/www/public/themes" ]]; then
32+ ln -s "/config/themes" "/app/www/public/themes"
33+ fi
34+
2335# permissions
2436lsiown -R abc:abc \
2537 /config \
You can’t perform that action at this time.
0 commit comments