byod/create.sh

14 lines
299 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" \
--arg di "$DOMAIN" \
'{domain: $d, directory: $di}' )
echo "$JSON_STRING" >> tilde.json
cd $DOMAIN