TURTL_DESCRIPTION='Whether its bookmarks or passwords, files or shopping lists...Turtl organizes it all and makes it easy to find later. Sync across your devices.'
--msgbox$"Storage limit changed to ${TURTL_STORAGE_LIMIT_MB}M" 6 50
fi
;;
esac
rm-f"$data"
function reconfigure_turtl {
# This is used if you need to switch identity. Dump old keys and generate new ones
echo-n''
}
function configure_interactive_turtl {
data=$(mktemp 2>/dev/null)
dialog --backtitle$"Freedombone Control Panel"\
--title$"turtl app settings"\
--radiolist$"Choose an operation:" 12 70 3 \
1 $"Enable/disable new user registrations" off \
2 $"Change storage limit" off \
3 $"Exit" on 2> "$data"
sel=$?
case$selin
1)rm-f"$data"
exit 1;;
255)rm-f"$data"
exit 1;;
esac
case$(cat"$data")in
1) configure_interactive_turtl_signups;;
2) configure_interactive_turtl_storage;;
3)rm-f"$data"
return;;
esac
rm-f"$data"
}
W=(1 $"Option 1"
2 $"Option 2")
function reconfigure_turtl {
if[-d$TURTL_BASE_DIR/data ];then
rm-rf$TURTL_BASE_DIR/data/*
fi
while true
do
# shellcheck disable=SC2068
selection=$(dialog --backtitle$"Freedombone Administrator Control Panel"--title$"turtl"--menu$"Choose an operation, or ESC for main menu:" 14 70 3 "${W[@]}" 3>&2 2>&1 1>&3)