summaryrefslogtreecommitdiffstats
path: root/server/export_target
diff options
context:
space:
mode:
authorJonathan Bauer2013-10-09 15:40:26 +0200
committerJonathan Bauer2013-10-09 15:40:26 +0200
commit50c545ee0866ce2950f181d72b121eab197f803c (patch)
tree3e29685016811d28b400a6a531bcef99785b4047 /server/export_target
parent[mltk] TODO: rework server export parameters since 'stage32' and 'addons' now... (diff)
downloadtm-scripts-50c545ee0866ce2950f181d72b121eab197f803c.tar.gz
tm-scripts-50c545ee0866ce2950f181d72b121eab197f803c.tar.xz
tm-scripts-50c545ee0866ce2950f181d72b121eab197f803c.zip
[server/export_target] generate_config: print the valid config types if the user didn't give one.
Diffstat (limited to 'server/export_target')
-rwxr-xr-xserver/export_target4
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}"