Only chown of existing files

* this caused issues during installation if the file is not existent
This commit is contained in:
Morris Jobke committed 2016-03-13 18:00:34 +01:00
1 parent 7704175f0d
commit 01430cd618
1 file changed
+5 -1
+5 -1
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