Do not fail with former setup
This commit is contained in:
parent
31780eb14d
commit
328b4eea6f
2
admin.sh
2
admin.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue