byod/create.sh

14 lines
299 B
Bash
Raw Normal View History

2019-08-14 08:23:52 +00:00
# This file needs to be added at /etc/skel
echo "Please enter new domain"
2019-08-14 08:20:54 +00:00
read DOMAIN
mkdir $DOMAIN
JSON_STRING=$( jq -n \
--arg d "$DOMAIN" \
--arg di "$DOMAIN" \
'{domain: $d, directory: $di}' )
echo "$JSON_STRING" >> tilde.json
2019-08-14 08:23:52 +00:00
cd $DOMAIN