Fix condition for flood autocreate user in deluge rpc

This commit is contained in:
Jean Froment 2021-06-20 15:31:44 +02:00
parent 389bdab528
commit ebd65276a2
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ ALL_SERVICES="-f docker-compose.yaml $SERVICES"
# Specific instructions for Flood # Specific instructions for Flood
# User for Deluge daemon RPC has to be created in deluge auth config file # User for Deluge daemon RPC has to be created in deluge auth config file
if [[ ! -z ${FLOOD_PASSWORD} && ${FLOOD_AUTOCREATE_USER_IN_DELUGE_DAEMON} ]]; then if [[ ! -z ${FLOOD_PASSWORD} && ${FLOOD_AUTOCREATE_USER_IN_DELUGE_DAEMON} == true && ! grep -q "flood" /data/config/deluge/auth ]]; then
echo "flood:${FLOOD_PASSWORD}:10" >> /data/config/deluge/auth echo "flood:${FLOOD_PASSWORD}:10" >> /data/config/deluge/auth
fi fi