- Fix WebUi plugin not enabled with default config.

This commit is contained in:
2025-05-25 11:53:01 +02:00
parent fb7c8461f6
commit 0bc4f80a8b
2 changed files with 4 additions and 1 deletions

View File

@@ -36,6 +36,9 @@ if [[ ! -f '${DELUGE_CONFIG}'/auth ]]
then \n\
cp -R '${DELUGE_CONFIG_TEMPLATE}'/* '${DELUGE_CONFIG}' \n\
\n\
hash="$(head -c 256 /dev/urandom | base64 | tr -dc '0-9a-f' | cut -c1-41)" \n\
echo "localclient:${hash}:10" >> '${DELUGE_CONFIG}'/auth \n\
\n\
sed -e "s/DELUGE_PORT_BT_LOW/${DELUGE_PORT_BT_LOW}/" -i '${DELUGE_CONFIG}'/core.conf \n\
sed -e "s/DELUGE_PORT_BT_HIGH/${DELUGE_PORT_BT_HIGH}/" -i '${DELUGE_CONFIG}'/core.conf \n\
fi \n\