added deezloader ui as an option

This commit is contained in:
Henning Bocklage 2020-09-10 21:11:04 +02:00
parent 197300b6c1
commit 0c388a9126
4 changed files with 36 additions and 5 deletions

View File

@ -1,5 +1,14 @@
# Changelog
## 2020-09-10
- added support for deezloader ui by environment variable "DEEZUI"
## 2020-09-08
- Switched the installer to the new server-requirements
## 2020-09-05
- Fixed the ARL updater
## 2020-07-24
- Updated code to pull from codeberg instead of notabug

View File

@ -26,6 +26,7 @@ $ docker run -d --name Deemix \
-e PGID=1000 \
-e ARL=1234567 \
-e UMASK_SET=022 \
-e DEEZUI=false \
-p 6595:6595 \
registry.gitlab.com/bockiii/deemix-docker
```
@ -45,6 +46,7 @@ services:
- PGID=1000
- ARL=1234567
- UMASK_SET=022
- DEEZUI=false
ports:
- 6595:6595
```
@ -67,6 +69,8 @@ The container will look for a new update in the Deemix repo on every start and w
`-e UMASK_SET=022 - OPTIONAL: Setting UMASK for file permissions Default is 022
`-e DEEZUI=false - OPTIONAL: Setting DEEZUI to true will change your GUI to the legacy Deezloader UI.
`-p 6595:6595` - Port opened for the web interface.
`registry.gitlab.com/bockiii/deemix-docker` - This container.

View File

@ -11,5 +11,6 @@ services:
- PGID=1000
- ARL=1234567
- UMASK_SET=022
- DEEZUI=false
ports:
- 6595:6595

View File

@ -6,8 +6,16 @@ echo "[cont-init.d] Downloading and unpacking"
if [ ! -f "/deemix/server.py" ]; then
echo "[cont-init.d] First start, cloning repo"
git clone --recurse-submodules https://codeberg.org/RemixDev/deemix-pyweb.git deemix
touch /deemix/updated
if [[ "${DEEZUI}" == "true" ]]; then
echo "[cont-init.d] Using Deezloader UI"
git clone https://codeberg.org/RemixDev/deemix-pyweb.git /deemix
git clone https://codeberg.org/RemixDev/deezloader-deemix.git /deemix/webui
touch /deemix/updated
else
echo "[cont-init.d] Using Deemix UI"
git clone --recurse-submodules https://codeberg.org/RemixDev/deemix-pyweb.git /deemix
touch /deemix/updated
fi
else
cd /deemix
localv=$(git rev-parse HEAD)
@ -16,7 +24,16 @@ else
echo -e "[cont-init.d] Latest Version. No update needed"
else
echo -e "[cont-init.d] Newer Version. Updating"
git pull --recurse-submodules
touch /deemix/updated
if [[ "${DEEZUI}" == "true" ]]; then
echo "[cont-init.d] Using Deezloader UI"
git pull
cd /deemix/webui
git pull
touch /deemix/updated
else
echo "[cont-init.d] Using Deemix UI"
git pull --recurse-submodules
touch /deemix/updated
fi
fi
fi
fi