From 14244b2804d094672d7c7ab95ec79cd5e3ec9fdb Mon Sep 17 00:00:00 2001 From: gilbN <24592972+gilbN@users.noreply.github.com> Date: Sun, 28 Feb 2021 20:07:21 +0100 Subject: [PATCH] download webui from source --- qbittorrent/root/etc/cont-init.d/98-themepark | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/qbittorrent/root/etc/cont-init.d/98-themepark b/qbittorrent/root/etc/cont-init.d/98-themepark index 64fb675e..810a862a 100644 --- a/qbittorrent/root/etc/cont-init.d/98-themepark +++ b/qbittorrent/root/etc/cont-init.d/98-themepark @@ -20,13 +20,18 @@ if [[ -z ${TP_THEME} ]]; then TP_THEME='organizr-dark' fi -# Copying template +# Downloading fresh webui files from source. if [[ ! -d /themepark ]]; then - echo '------------------------' - echo '| Copying the template |' - echo '------------------------' - cp -r /defaults/theme /themepark - printf 'Template copied to "/themepark"\n' + echo '---------------------------------------' + echo '| Downloading WebUI files from github |' + echo '---------------------------------------' + svn export https://github.com/qbittorrent/qBittorrent/trunk/src/webui/www /themepark + printf 'Downloaded qBittorrent webui to "/themepark"\n' + svn export https://github.com/qbittorrent/qBittorrent/trunk/src/icons /temp + cp -r /temp /themepark/public + cp -r /temp /themepark/private + rm -rf /temp + printf 'Downloaded qBittorrent webui icons to "/themepark"\n' fi # Adding stylesheets @@ -43,7 +48,7 @@ if ! grep -q "${TP_DOMAIN}" /themepark/private/index.html; then echo '| Adding the stylesheet to private index.html |' echo '-----------------------------------------------' sed -i "s/<\/head>/<\/head> /g" /themepark/private/index.html - printf 'Stylesheet set to %s\n private index.html' "${TP_THEME}" + printf 'Stylesheet set to %s on private index.html \n'"${TP_THEME}" fi if ! grep -q "WebUI\\\RootFolder" /config/qBittorrent/qBittorrent.conf; then