X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tools%2Fnd-vmsetupwizard;fp=tools%2Fnd-vmsetupwizard;h=43a58809fe4f174d36b5b5c4a40d9f74b64fa576;hb=441723d6edfc6b868be27bfa4ad63dc7a2fefdb8;hp=7afc31367f809af740dd8e5542e2b9802e3ae933;hpb=6c6fa9cd3bd627a60f165682f96af3cc06d9ccc9;p=neurodebian.git diff --git a/tools/nd-vmsetupwizard b/tools/nd-vmsetupwizard index 7afc313..43a5880 100755 --- a/tools/nd-vmsetupwizard +++ b/tools/nd-vmsetupwizard @@ -32,11 +32,21 @@ Do you want to proceed with updating the system? fi # initialize apt -update-manager -c - -sudo update-software-center --debug 2>&1 | \ - zenity $icon_opt --title="Updating Software Center Repository" \ - --progress --pulsate --auto-close --auto-kill +# +# update-manager (from update-manager-gnome) and +# update-software-center (from software-center) +# are present only in wheezy +if which update-manager > /dev/null; then update-manager -c; fi + +if which update-software-center > /dev/null; then + sudo update-software-center --debug 2>&1 | \ + zenity $icon_opt --title="Updating Software Center Repository" \ + --progress --pulsate --auto-close --auto-kill; +else + sudo apt-get update 2>&1 | \ + zenity $icon_opt --title="Running apt-get update" \ + --progress --pulsate --auto-close --auto-kill; +fi popconf=/etc/popularity-contest.conf if [ ! -e "$popconf" ] || grep -q -e '^PARTICIPATE.*no' "$popconf" ;