From 01e77f49590643238265e94b1636031ee92d147a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 23:50:34 +0000 Subject: [PATCH] add agree_tos --- usr/share/install_helper.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 3ee4236..5162f7e 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -201,7 +201,10 @@ my_config="$TELEBIT_PATH/etc/$my_app.yml" mkdir -p "$(dirname $my_config)" if [ ! -e "$my_config" ]; then #$rsync_cmd examples/$my_app.yml "$my_config" - echo "email: $my_email" >> "$my_config" + if [ -n "$my_email" ]; then + echo "email: $my_email" >> "$my_config" + echo "agree_tos: true" >> "$my_config" + fi if [ -n "$my_relay" ]; then echo "relay: $my_relay" >> "$my_config" fi @@ -222,7 +225,10 @@ my_config="$HOME/.config/$my_app/$my_app.yml" mkdir -p "$(dirname $my_config)" if [ ! -e "$my_config" ]; then echo "cli: true" >> "$my_config" - echo "email: $my_email" >> "$my_config" + if [ -n "$my_email" ]; then + echo "email: $my_email" >> "$my_config" + echo "agree_tos: true" >> "$my_config" + fi if [ -n "$my_relay" ]; then echo "relay: $my_relay" >> "$my_config" fi