From 6e6b08ea0ec6af4b35d1c05736ce7f417bc7aaac Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Wed, 31 Oct 2018 22:48:06 -0400 Subject: [PATCH] scripts: put AL16M back to avoid breaking existing scripts Leave AL16M defined in beesd to avoid breaking scripts based on beesd.conf.sample which used this constant. Use the absolute size in beesd.conf.sample to avoid any future problems. Signed-off-by: Zygo Blaxell --- scripts/beesd.conf.sample | 2 +- scripts/beesd.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/beesd.conf.sample b/scripts/beesd.conf.sample index d7750d9..f9cc9e9 100644 --- a/scripts/beesd.conf.sample +++ b/scripts/beesd.conf.sample @@ -31,4 +31,4 @@ UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # 64TB 1GB 1024K # # Size MUST be multiple of 128KB -# DB_SIZE=$((8192*$AL128K)) # 1G in bytes +# DB_SIZE=$((1024*1024*1024)) # 1G in bytes diff --git a/scripts/beesd.in b/scripts/beesd.in index b5d6564..216bc41 100755 --- a/scripts/beesd.in +++ b/scripts/beesd.in @@ -9,9 +9,10 @@ YN(){ [[ "$1" =~ (1|Y|y) ]]; } export BEESHOME BEESSTATUS export WORK_DIR CONFIG_DIR export CONFIG_FILE -export UUID AL128K +export UUID AL16M AL128K readonly AL128K="$((128*1024))" +readonly AL16M="$((16*1024*1024))" readonly CONFIG_DIR=@ETC_PREFIX@/bees/ readonly bees_bin=$(realpath @LIBEXEC_PREFIX@/bees)