]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd-vmsetupwizard
Fixes.
[neurodebian.git] / tools / nd-vmsetupwizard
index ca91553caa7dc741c01f304874818efe7d393eb3..d9f4046a6cb6682639b956ee4b48c54ca188ef71 100755 (executable)
@@ -21,33 +21,6 @@ zenity --info $icon_opt --title="NeuroDebian Setup Wizard" \
        --text="Welcome to the NeuroDebian virtual machine!
 
 This is the first time you have started this virtual machine. We will now perform a few simple steps to finalize its configuration. This includes upgrading the system to the latest available versions and installing additional software packages upon your request."
-
-# install custom filter for synaptics
-sudo mkdir -p /root/.synaptic
-sudo cat << EOT >> /root/.synaptic/filters
-filter "NeuroDebian" {
-  section {
-    inclusive false;
-    sections {
-    };
-  };
-  status {
-    flags 0x1ffff;
-  };
-  pattern {
-    andMode 0;
-    patterns {
-      Origin; "neuro.debian.net"; false;
-      Maintainer; "team@neuro.debian.net"; false;
-    };
-  };
-  priority {
-  };
-  reducedview {
-    enabled false;
-  };
-};
-EOT
 fi
 
 if ! zenity --question $icon_opt --title="NeuroDebian Setup Wizard" \
@@ -72,8 +45,35 @@ if [ ! -e /etc/popularity-contest.conf ]; then
        nd-autoinstall popularity-contest /etc/popularity-contest.conf || true
 fi
 
-# essential things are done -- let's mark sucess
+# install custom filter for synaptics
 if [ $first_run -eq 1 ]; then
+       sudo mkdir -p /root/.synaptic
+       sudo bash -c 'cat << EOT >> /root/.synaptic/filters
+filter "NeuroDebian" {
+  section {
+    inclusive false;
+    sections {
+    };
+  };
+  status {
+    flags 0x1ffff;
+  };
+  pattern {
+    andMode 0;
+    patterns {
+      Origin; "neuro.debian.net"; false;
+      Maintainer; "team@neuro.debian.net"; false;
+    };
+  };
+  priority {
+  };
+  reducedview {
+    enabled false;
+  };
+};
+EOT
+'
+       # essential things are done -- let's mark sucess
        sudo bash -c "mkdir -p $cfg_dir && touch $success_flag"
 fi