I just ran the removal of the user from the conf using:
sed -i "s/\$quotaUser = \"${username}\";/\$quotaUser = \"\";/g" /srv/rutorrent/conf/users/"${username}"/config.php
This did not change the fact that a users diskspace plugin shows blank within ruTorrent. Since this is currently happening on a test install I have going I am going to check the additional plugins. I notice an unusual occurrence where it has always removed the visible value of torrents loaded as well. However, I have another install exactly like this one (minus any active torrents) and everything (diskspace plugin included) is in tip top shape.
The numeric of rtorrent torrents loaded is from a missing .sessions/rtorrent.lock <-- that’s solely my fault - A long day thus far.
It looks like for some reason the update on an old install didn’t pull in the updated plugin. I just encountered this and upon inspection of the diskspace plugin, this is in fact as @liara has stated. The new diskspace/action.php should like like the following:
<?php
##########################################################################
## [Quick Box - action.php modified for quota systems use]
##########################################################################
# GITHUB REPOS
# GitHub _ packages : https://github.com/QuickBox/quickbox_rutorrent-plugins
# LOCAL REPOS
# Local _ packages : ~/QuickBox/rtplugins
# Author : QuickBox.IO
# URL : https://plaza.quickbox.io
#
# QuickBox Copyright (C) 2016 QuickBox.io
# Licensed under GNU General Public License v3.0 GPL-3 (in short)
#
# You may copy, distribute and modify the software as long as you track
# changes/dates in source files. Any modifications to our software
# including (via compiler) GPL-licensed code must also be made available
# under the GPL along with build & install instructions.
#
##########################################################################
require_once( '../../php/util.php' );
if (isset($quotaUser) && file_exists('/install/.quota.lock')) {
$total = shell_exec("/usr/bin/sudo /usr/sbin/repquota -u / | /bin/grep ^".$quotaUser." | /usr/bin/awk '{printf $4*1024}'");
$free = shell_exec("/usr/bin/sudo /usr/sbin/repquota -u / | /bin/grep ^".$quotaUser." | /usr/bin/awk '{printf ($4-$3)*1024}'");
cachedEcho('{ "total": '.$total.', "free": '.$free.' }',"application/json");
} else {
cachedEcho('{ "total": '.disk_total_space($topDirectory).', "free": '.disk_free_space($topDirectory).' }',"application/json");
}
?>