Sh3ll



Directory :  /scripts2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Current File : //scripts2/locate_account.sh
#!/bin/bash
# Find the account name associted with a domain.

DOMAIN=$1

ACC=$(whmapi1 --output=json get_domain_info | jq -r --arg DOMAIN "$DOMAIN" '.data.domains[] | select( .domain == $DOMAIN) | .user')

if [ "$ACC" ]; then
  /scripts2/account_sum.sh $ACC
fi

Sh3LL