d_noizeshakerz
Verified User
- Joined
- Dec 8, 2013
- Messages
- 16
Hi all,
I tried running the following bash taken from https://docs.directadmin.com/direct...how-to-rebuild-all-resellers-users-list-files
But getting the following error. May someone shed some light on why this is the case?
The code:
I tried running the following bash taken from https://docs.directadmin.com/direct...how-to-rebuild-all-resellers-users-list-files
But getting the following error. May someone shed some light on why this is the case?
Code:
fix.sh: command substitution: line 5: unexpected EOF while looking for matching `"'
fix.sh: command substitution: line 6: syntax error: unexpected end of file
The code:
Code:
#!/bin/sh
cd /usr/local/directadmin/data/users
for r in `ls */reseller.conf | cut -d/ -f1`; do
{
echo "fixing Reseller $r ...";
echo -n '' > $r/users.list
for u in `grep "^creator=$rquot; */user.conf | cut -d/ -f1`; do
{
ISUSER=`grep -c usertype=user $u/user.conf`
if [ "$ISUSER" = "1" ]; then
echo $u >> $r/users.list
fi
};
done;
};
done;