byod/create.sh

13 lines
243 B
Bash

# This file needs to be added at /etc/skel
echo "Please enter new domain"
read DOMAIN
mkdir $DOMAIN
JSON_STRING=$( jq -n \
--arg d "$DOMAIN" \
'{domain: $d}' )
echo "$JSON_STRING" > tilde.json
cd $DOMAIN