fix whitespace

development
teutat3s 5 years ago
parent f9d39f1c0c
commit 6a9eb89ea6
No known key found for this signature in database
GPG Key ID: 18DAE600A6BBE705

@ -16,16 +16,16 @@ function get_domain_dir() {
for f in *; do for f in *; do
counter=$(( counter + 1 )) counter=$(( counter + 1 ))
if [ ! -d "$f" ]; then if [ ! -d "$f" ]; then
echo "Error: could not find directory 'matrix.your.domain'" echo "Error: could not find directory 'matrix.your.domain'"
echo "Did you create it already? Please first setup your matrix homeserver before running this script." echo "Did you create it already? Please first setup your matrix homeserver before running this script."
echo "You should start here: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/prerequisites.md" echo "You should start here: https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/prerequisites.md"
exit 1 exit 1
elif [[ "$counter" -gt 1 ]]; then elif [[ "$counter" -gt 1 ]]; then
echo "Error: multiple directories found in ../host_vars/. Only one directory like 'matrix.your.domain' expected." echo "Error: multiple directories found in ../host_vars/. Only one directory like 'matrix.your.domain' expected."
echo "Please make sure there is only one directory holding your vars.yml for this ansible playbook." echo "Please make sure there is only one directory holding your vars.yml for this ansible playbook."
echo "Cannot continue script, exiting." echo "Cannot continue script, exiting."
exit 1 exit 1
fi fi
# Will not set domain if zero or multiple directories are detected # Will not set domain if zero or multiple directories are detected
domain=$f domain=$f

Loading…
Cancel
Save