feat: add logging
This commit is contained in:
committed by
GitHub
parent
f664ad1cde
commit
093414b846
6
debian/postinst
vendored
6
debian/postinst
vendored
@@ -100,12 +100,16 @@ case "$1" in
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ! -f "${DOKKU_ROOT}/VHOST" ]; then
|
||||
if [ -f "${DOKKU_ROOT}/VHOST" ]; then
|
||||
echo "VHOST file detected, skipping modification"
|
||||
else
|
||||
db_get "dokku/vhost_enable"
|
||||
if [ "$RET" = "true" ]; then
|
||||
db_get "dokku/hostname"
|
||||
echo "Setting VHOST contents to $RET"
|
||||
echo "$RET" > "${DOKKU_ROOT}/VHOST"
|
||||
else
|
||||
echo "VHOST disabled via debconf, removing"
|
||||
rm -f "${DOKKU_ROOT}/VHOST"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user