Skip to content
Snippets Groups Projects
Commit 89d05dea authored by Bob Mottram's avatar Bob Mottram
Browse files

Don't preinstall repos on mesh variant

parent cacb9770
No related branches found
No related tags found
No related merge requests found
......@@ -285,7 +285,7 @@ following commands, then enter your details.
}
configure_ssh() {
if [[ $VARIANT == "mesh" || $VARIANT == "meshclient" || $VARIANT == "meshusb" ]]; then
if [[ $VARIANT == "mesh"* ]]; then
return
fi
......@@ -320,7 +320,7 @@ create_generic_image() {
fi
# Don't install any configuration. This will be a base system
if [[ $VARIANT != "mesh" && $VARIANT != "meshclient" && $VARIANT != "meshusb" ]]; then
if [[ $VARIANT != "mesh"* ]]; then
CONFIG_FILENAME=
else
touch $rootdir/root/.initial_mesh_setup
......@@ -403,7 +403,7 @@ EOF
echo " git checkout stretch" >> $rootdir/root/.bashrc
echo " make install" >> $rootdir/root/.bashrc
if [[ $VARIANT != "mesh" && $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "usb" ]]; then
if [[ $VARIANT != "mesh"* && $VARIANT != "usb" ]]; then
if [[ "$SOCIALINSTANCE" == "gnusocial" ]]; then
echo " ${PROJECT_NAME} menuconfig-gnusocial" >> $rootdir/root/.bashrc
else
......@@ -433,7 +433,7 @@ EOF
echo ' rm /home/fbone/.initial_setup' >> $rootdir/root/.bashrc
echo " touch /root/.remove_${GENERIC_IMAGE_USERNAME}" >> $rootdir/root/.bashrc
echo ' shred -zu ~/login.txt' >> $rootdir/root/.bashrc
if [[ $VARIANT != "mesh" && $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "usb" ]]; then
if [[ $VARIANT != "mesh"* && $VARIANT != "usb" ]]; then
echo ' SSH_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_ssh/hostname)' >> $rootdir/root/.bashrc
echo ' if [ ${#SSH_ONION_HOSTNAME} -lt 2 ]; then' >> $rootdir/root/.bashrc
......@@ -583,7 +583,7 @@ INSTALL_DIR=$HOME/build
INSTALLING_MESH=
initialise_mesh() {
if [[ $VARIANT != "mesh" && $VARIANT != "meshclient" && $VARIANT != "meshusb" ]]; then
if [[ $VARIANT != "mesh"* ]]; then
return
fi
if [[ $DEBIAN_INSTALL_ONLY != "no" ]]; then
......@@ -1236,6 +1236,10 @@ function image_install_nodejs {
}
function image_preinstall_repos {
if [[ $VARIANT == "mesh"* ]]; then
return
fi
if [ ! -d $rootdir/repos ]; then
mkdir $rootdir/repos
fi
......@@ -1364,7 +1368,7 @@ if [ -n "$CUSTOM_SETUP" ]; then
chroot "$rootdir" gdebi -n /tmp/"$(basename $CUSTOM_SETUP)"
fi
if [[ $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "mesh" ]]; then
if [[ $VARIANT != "mesh"* ]]; then
chroot "$rootdir" apt-get install -y openssh-server
fi
chroot "$rootdir" apt-get install -y sudo git dialog build-essential
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment