-neurodebian (0.5) squeeze; urgency=low
+neurodebian (0.6) squeeze; urgency=low
* Initial release.
- -- Michael Hanke <michael.hanke@gmail.com> Wed, 03 Nov 2010 14:31:48 -0400
+ -- Michael Hanke <michael.hanke@gmail.com> Wed, 03 Nov 2010 14:41:15 -0400
set -e
set -u
-success_flag=/etc/neurodebian/guest/setupwizard_done
+cfg_dir=/etc/neurodebian/guest/setupwizard_done
+success_flag=$cfg_dir/setupwizard_done
nd_icon=/usr/share/pixmaps/neurodebian.svg
icon_opt="--window-icon=$nd_icon"
fi
if ! zenity --question $icon_opt --title="NeuroDebian Setup Wizard" \
---text="The setup procedure requires network access to download packages from the Debian archive. If you do not have network access right now, you can re-start this wizzard at any time from the NeuroDebian menu.
+--text="The setup procedure requires network access to download packages from the Debian archive. If you do not have network access right now, you can re-start this wizard at any time from the NeuroDebian menu.
Do you want to proceed with updating the system?
"; then
fi
# initialize apt
-#update-manager -c
+update-manager -c
if [ ! -e /etc/popularity-contest.conf ]; then
zenity --info $icon_opt --title="NeuroDebian Setup Wizard" \
# essential things are done -- let's mark sucess
if [ $first_run -eq 1 ]; then
- sudo touch $success_flag
+ sudo bash -c "mkdir -p $cfg_dir && touch $success_flag"
fi
packages=$(zenity --list --checklist --column="Install" --column="Description" \
" \
FALSE "one" "ipython" \
FALSE "two" "vim" \
-FALSE "three" "bc dc")
+FALSE "three" "bc dc" || true)
if [ -n "$packages" ]; then
nd-autoinstall -f -p "$packages" true