diff options
Diffstat (limited to 'server')
| -rwxr-xr-x | server/export_target | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/export_target b/server/export_target index 4dbf2aae..e5fbce12 100755 --- a/server/export_target +++ b/server/export_target @@ -84,7 +84,9 @@ generate_config() { pinfo "Generating config.tgz for '${SERVER_CONFIG_TYPE}'" # check if SERVER_EXPORT_TARGET is valid - [ ! -z "${SERVER_CONFIG_TYPE}" ] || perror "Server export config not given!" + [ ! -z "${SERVER_CONFIG_TYPE}" ] || \ + perror "Server export config type not given! Valid types are: $(echo $(ls $SERVER_CONFIGS_DIR))" + [ -d "${SERVER_CONFIGS_DIR}/${SERVER_CONFIG_TYPE}" ] || \ perror "Given export config not found: ${SERVER_CONFIGS_DIR}/${SERVER_CONFIG_TYPE}" |
