Small fix

This commit is contained in:
Stephen Cochrane 2020-10-15 09:45:26 +02:00
parent 3312e8e2a9
commit c53cb9cccd

2
nginxd
View File

@ -59,7 +59,7 @@ unitsd=${unitsd:="./units"}
# Check if we are disabeling, that we have a replacement unit
[ $oper == "d" ] && [[ ! -f "$unitsd/d$unit" ]] && error "Cannot find replacement unit for <$unit>" 1
[ $oper == "e" ] && [[ ! -f "$unitsd/$unit" ]] && error "Cannot find unit file for <$unit>" 1
[ $oper == "e" ] && [ $unit != "all" ] && [[ ! -f "$unitsd/$unit" ]] && error "Cannot find unit file for <$unit>" 1
# Everything is valid, start setting up.
#cp $unitsd/* /etc/nginx/sites-available/