Index: scripts/globals.sh =================================================================== diff -u -r3e5d7dc83d85c4727634d366938b40d20cfebc4e -rd638f1b23e6ec1c200643e8233cd65972621ca25 --- scripts/globals.sh (.../globals.sh) (revision 3e5d7dc83d85c4727634d366938b40d20cfebc4e) +++ scripts/globals.sh (.../globals.sh) (revision d638f1b23e6ec1c200643e8233cd65972621ca25) @@ -615,6 +615,13 @@ time_start=$(date +%s) } + +#TODO later improvement +# function checkLogBackups() { +# find +# filename="$SDCARD_MNT/log/" && filename2="${filename%.*}"".u."${filename##*.} && mv "$filename" "$filename2" && gzip $filename2 && ls log +# } + function timerEndLog() { # ----------------------------------------- END # tag the end time in the POST log file Index: scripts/start.sh =================================================================== diff -u -re554eebb79659077383c506d90cecbc125855894 -rd638f1b23e6ec1c200643e8233cd65972621ca25 --- scripts/start.sh (.../start.sh) (revision e554eebb79659077383c506d90cecbc125855894) +++ scripts/start.sh (.../start.sh) (revision d638f1b23e6ec1c200643e8233cd65972621ca25) @@ -38,6 +38,7 @@ SERVER_CONFIG_EXT="json" SERVER_CONFIG_JSON="$SERVER_CONFIG_FILE.$SERVER_CONFIG_EXT" SERVER_CONFIG_JSON_WS="$SERVER_CONFIG_FILE" +SERVER_CONFIG_JSON_WS_ALL="$SERVER_CONFIG_JSON_WS"_*.""$SERVER_CONFIG_EXT" SERVER_DRT_WS_PRODUCT="production" SERVER_DRT_WS_STAGING="staging" SERVER_DRT_WS_QUALITY="quality" @@ -96,7 +97,8 @@ # creat the config.json file - cp "$SERVER_CONFIG_JSON_WS""_""$SERVER_WS"".""$SERVER_CONFIG_EXT" $SERVER_CONFIG_JSON + cp "$SERVER_CONFIG_JSON_WS""_""$SERVER_WS"".""$SERVER_CONFIG_EXT" $SERVER_CONFIG_JSON # copy the config for the selected environment to config.json + rm "$SERVER_CONFIG_JSON_WS_ALL" # remove the template config_.json files if [[ ! -e $SERVER_CONFIG_JSON ]]; then echo "The file $SERVER_CONFIG_JSON cannot be created" exit 0