#!/usr/bin/env bash

base_path="/docker/web/"
username=$1
uid=$2
domain=$3

mkdir "$base_path$domain"

adduser -M -d "$base_path$domain" -u $uid -c "Webhosting Panel Website User" $username

chown -R $username:$username "$base_path$domain"

exit 0