Finished for tonight

This commit is contained in:
Stephen Cochrane 2020-10-15 00:11:44 +02:00
parent da7f66c166
commit 13cce99dba
1 changed files with 5 additions and 1 deletions

6
nginxd
View File

@ -51,8 +51,12 @@ done
# Available units
units=( git blog wiki irc proj all )
unitsd=${unitsd-"./units"}
unitsd=${unitsd:="./units"}
# Check that a valid unit was given.
[[ ! " ${units[@]} " =~ " ${unit} " ]] && error "The unit <$unit> does not exist." 1 \
|| echo "Unit <$unit> found!"
# Everything is valid, start setting up.
cp $unitsd/* /etc/nginx/sites-available/
# TODO: Setup links, and delete links if needed