while [ "$STATE" != 0 -a "$STATE" -lt 9 ]; do
case $STATE in
1)
- # allow to be overriden by environment variable as discussed with
+ # allow to be overridden by environment variable as discussed with
# ftpmaster
if [ ! -z "${NEURODEBIAN_ENABLE:-}" ]; then
case "${NEURODEBIAN_ENABLE}" in
true|yes|YES|1) enable=true;;
false|no|NO|0) enable=false;;
- *) echo "Non-supported value $NEURODEBIAN_ENABLE of NEURODEBIAN_ENABLE env variable. Use yes or no" >&2;
+ *) echo "ERROR: Non-supported value $NEURODEBIAN_ENABLE of NEURODEBIAN_ENABLE env variable. Use yes or no" >&2;
exit 1;;
esac
db_set neurodebian/enable $enable
fi
- db_input medium neurodebian/enable || true
+ db_input high neurodebian/enable || true
;;
2)
neurodebian_releases="$(ND_IFS=', ' nd-configurerepo --print-releases)"
db_get neurodebian/enable # get new value
if [ "$RET" = "false" ]; then
# no need to proceed with further questions
- if /bin/ls /etc/apt/sources.list.d/neurodebian.sources*.list &>/dev/null; then
+ if ls /etc/apt/sources.list.d/neurodebian.sources*.list &>/dev/null; then
# we have configuration present -- display a note about apt-get update
STATE=8
else