Skip to content

Commit 54eb354

Browse files
authored
Merge pull request #30 from linuxserver/themes
Add support for custom themes
2 parents bc55d96 + 932d423 commit 54eb354

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ app_setup_block: |
4646
4747
# changelog
4848
changelogs:
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." }

root/etc/s6-overlay/s6-rc.d/init-phpmyadmin-config/run

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
2121
fi
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
2436
lsiown -R abc:abc \
2537
/config \

0 commit comments

Comments
 (0)