diff options
author | Simon Rettberg | 2015-09-18 17:37:17 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-09-18 17:37:17 +0200 |
commit | 791c2af746090d7d4943ab5eb7c91ada5bb0d321 (patch) | |
tree | 1e47bda97a8cd03923daab2d93a90d7376f8f4f4 /satellit_installer/includes/50-install_bwSuite_server.inc | |
parent | [SSPS] Fix systemd services for dmsd and taskmanager (diff) | |
download | setup-scripts-791c2af746090d7d4943ab5eb7c91ada5bb0d321.tar.gz setup-scripts-791c2af746090d7d4943ab5eb7c91ada5bb0d321.tar.xz setup-scripts-791c2af746090d7d4943ab5eb7c91ada5bb0d321.zip |
[SSPS] Protip: Writing proper shell scripts works much better
Diffstat (limited to 'satellit_installer/includes/50-install_bwSuite_server.inc')
-rw-r--r-- | satellit_installer/includes/50-install_bwSuite_server.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/satellit_installer/includes/50-install_bwSuite_server.inc b/satellit_installer/includes/50-install_bwSuite_server.inc index c10d2de..b15787f 100644 --- a/satellit_installer/includes/50-install_bwSuite_server.inc +++ b/satellit_installer/includes/50-install_bwSuite_server.inc @@ -38,10 +38,10 @@ install_bwSuite_service() { #!/bin/sh KB=\$($(which grep) ^MemTotal /proc/meminfo | $(which awk) '{print \$2}') - [ -z "\$KB" ] KB=600000 + [ -z "\$KB" ] && KB=600000 MB=\$(( \$KB / 1024 )) - [ "\$MB" -gt 2000 ] MB=2000 - [ "\$MB" -lt 190 ] MB=190 + [ "\$MB" -gt 2000 ] && MB=2000 + [ "\$MB" -lt 190 ] && MB=190 exec $(which java) -Xmx\${MB}M -jar dmsd.jar EOF |