Only chown of existing files

* this caused issues during installation if the file is not existent
This commit is contained in:
Morris Jobke
2016-03-13 15:22:25 +01:00
parent 7704175f0d
commit 01430cd618

View File

@@ -60,4 +60,8 @@ fi
EOF
chmod +x /etc/update-motd.d/99-dokku
chown dokku:dokku "$DOKKU_ROOT/HOSTNAME" "$DOKKU_ROOT/VHOST"
chown dokku:dokku "$DOKKU_ROOT/HOSTNAME"
if [[ -f "$DOKKU_ROOT/VHOST" ]]; then
chown dokku:dokku "$DOKKU_ROOT/VHOST"
fi