Do not fail with former setup

This commit is contained in:
user 2019-08-14 19:18:48 +02:00
parent 31780eb14d
commit 328b4eea6f
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ for byod in /home/*/byod; do
user=$(stat -c '%U' $byod)
domain=$(cat $byod)
echo "$user is requesting $domain"
if [ -s /etc/nginx/sites-enabled/byod-$domain.conf ]; then
if [ -f /var/lib/byod/$domain ]; then
echo "byod already configured for $domain"
previousUser=$(cat /var/lib/byod/user/$user)
if [! "$user" -eq "$previousUser"]; then