#!/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=$r$" */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;
rebuild 代理层用户丢失脚本
未经允许不得转载:优惠吧 » rebuild 代理层用户丢失脚本
评论前必须登录!
注册