don't link banned users' pages, since they're inaccessible

This commit is contained in:
jan6 2021-12-23 23:30:42 +02:00
parent 389e2ebf70
commit 846f474933
2 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit b27cae389b469b4bd2c6e0abbd2e839fc8f9e758
Subproject commit 6b1927e431fa655e17f924609d242fa76ee9e6f2

View File

@ -5,5 +5,8 @@ echo "# user list"
# exclude lost+found and testuser
for user in $(ls /home/ -1 | grep -v \+ | grep -v testuser)
do
echo "[~$user](/~$user) ";
if [ "$(stat -c %G "/home/$user")" != "banned" ];then
echo "[~$user](/~$user) ";
else
echo "~$user (banned) ";
done