DVL-008 Show settings nicely formatted

This commit is contained in:
cytopia 2017-04-22 14:03:58 +02:00
parent a6859394bf
commit baac823ce6
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -367,12 +367,12 @@ devilbox_start() {
# Show Server settings
echo "Enable SERVERs"
echo "--------------"
grep '^[A-Za-z0-9]*_SERVER' "${DEVILBOX_PATH}/.env"
grep '^[A-Za-z0-9]*_SERVER' "${DEVILBOX_PATH}/.env" | column -t -s '='
# Show all other settings
echo "Enable Settings"
echo "---------------"
grep -E '^[-_A-Za-z0-9]*=' "${DEVILBOX_PATH}/.env" | grep -v 'SERVER_'
grep -E '^[-_A-Za-z0-9]*=' "${DEVILBOX_PATH}/.env" | grep -v 'SERVER_' | column -t -s '='
# Run