| baseImage="Ubuntu1604LTS" |
| installerArchive="installer.tar.bz2" |
| installerPart="installer.part" |
| # Check if the tar file is available. |
| echo -e "${lBlue}Checking for the installer archive ${lCyan}$installerArchive${NC}" |
| if [ ! -f $installerArchive ]; then |
| # The installer file ins't there, check for parts to re-assemble |
| echo -e "${lBlue}Checking for the installer archive parts ${lCyan}$installerPart*${NC}" |
| fList=`ls ${installerPart}*` |
| echo -e "${red} Could not find installer archive or installer archive parts, ABORTING.${NC}" |
| # All is well, concatenate the files together to create the installer archive |
| echo -e "${lBlue}Creating the installer archive ${lCyan}$installerArchive${NC}" |
| cat $fList > installer.tar.bz2 |
| # Extract the installer files and bootstrap the installer |
| echo -e "${lBlue}Extracting the content of the installer archive ${lCyan}$installerArchive${NC}" |
| tar xjf $installerArchive |
| echo -e "${lBlue}Starting the installer${NC}" |
| chmod u+x BootstrapInstaller.sh |
| ./BootstrapInstaller.sh "$@" |