Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup/quickbox-setup
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ fi
if [[ $DELUGE != NO ]]; then
n=$RANDOM
DPORT=$((n%59000+10024))
DWSALT=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
DWSALT=$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
DWP=$(python ${local_packages}/system/deluge.Userpass.py ${passwd} ${DWSALT})
DUDID=$(python ${local_packages}/system/deluge.addHost.py)
# -- Secondary awk command -- #
Expand Down
4 changes: 2 additions & 2 deletions setup/templates/bashrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ echo -n "Username: "; read user
if [[ -e /install/.deluge.lock ]]; then
systemctl stop deluged@${username}
systemctl stop deluge-web@${username}
DWSALT=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
DWSALT=$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
DWP=$(python /usr/local/bin/quickbox/system/deluge.Userpass.py ${passwd} ${DWSALT})
sed -i "s/.*$username.*/${username}:${passwd}:10/" /home/$username/.config/deluge/auth
sed -i "s/.*pwd_salt.*/ \"pwd_salt\": \"${DWSALT}\",/" /home/$username/.config/deluge/web.conf
Expand Down Expand Up @@ -1281,7 +1281,7 @@ echo -n "Setting up Deluge for $username ... "
ip=$(ip route get 8.8.8.8 | awk 'NR==1 {print $NF}')
dport=$((RANDOM%59000+10024))
dwport=$(shuf -i 10001-11000 -n 1)
DWSALT=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
DWSALT=$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
DWP=$(python /usr/local/bin/quickbox/system/deluge.Userpass.py ${passwd} ${DWSALT})
DUDID=$(python /usr/local/bin/quickbox/system/deluge.addHost.py)
mkdir -p /home/${username}/.config/deluge/plugins
Expand Down