From c904c4642432c259e97000c876662edc5fdd7c81 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Wed, 20 Apr 2022 22:26:05 +0200 Subject: [PATCH] chore: remove unused lxc-boostrap file (#1778) --- installer/lxc-bootstrap | 62 ----------------------------------------- 1 file changed, 62 deletions(-) delete mode 100755 installer/lxc-bootstrap diff --git a/installer/lxc-bootstrap b/installer/lxc-bootstrap deleted file mode 100755 index 6ecb1423a..000000000 --- a/installer/lxc-bootstrap +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env bash - -set -e -#-e Causes bash script to exit if any of the installers -#return with a non-zero return value. - -if [[ $EUID -ne 0 ]]; then - echo "Please run as root user." - exit 1 -fi - -dist=$1 -release=$2 -name=airtime-install - -set +e -echo -e "\n * Stopping ${name}..." -lxc-stop -n airtime-install -echo "...Done" - -echo -e "\n * Destroying ${name}..." -lxc-destroy -n airtime-install -echo "...Done" -set -e - -### -# ! NOTE: If you run into errors resolving the archives when running apt-get update, -# clear your /var/cache/lxc directory and retry. -### - -echo -e "\n * Creating ${name} with dist ${dist} and release ${release}..." -lxc-create -t ${dist} -n ${name} -- --release ${release} -echo "...Done" - -echo -e "\n * Starting ${name}..." -lxc-start -n ${name} -d -echo "...Done" - -echo -e "\n * Running apt update..." -lxc-attach -n ${name} -- apt-get update -echo "...Done" - -echo -e "\n * Installing git..." -lxc-attach -n ${name} -- apt-get -y --force-yes install git -echo "...Done" - -echo -e "\n * Cloning Airtime..." -lxc-attach -n ${name} -- git clone https://github.com/sourcefabric/Airtime.git /usr/share/Airtime --branch 2.5.x-installer-monitless --depth 1 -echo "...Done" - -echo -e "\n * Running installer..." -lxc-attach -n ${name} -e -- /usr/share/Airtime/install -ifapdIv -echo "...Done" - -IP=$(lxc-info -i -n ${name} -H) -echo -e "\n * Opening ${name} in your browser..." -if hash xdg-open 2> /dev/null; then - xdg-open "http://${IP}/" -elif hash gnome-open 2> /dev/null; then - gnome-open "http://${IP}/" -fi -echo "...Done"