Skip to content

Commit

Permalink
min
Browse files Browse the repository at this point in the history
  • Loading branch information
jvonau committed May 1, 2021
1 parent c469847 commit 27386db
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions min-runme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive

apt update
apt install -y git wget curl whiptail software-properties-common
mkdir /etc/iiab
cd /etc/iiab
wget https://raw.githubusercontent.com/jvonau/iiab/build/vars/local_vars_min_secure.yml -O local_vars.yml
#echo "provision_install: True" >> /etc/iiab/local_vars.yml
#echo "provision_active: True" >> /etc/iiab/local_vars.yml
#echo "provision_enable: True" >> /etc/iiab/local_vars.yml

mkdir /opt/iiab
cd /opt/iiab
git clone http://github.com/iiab/iiab-admin-console
git clone http://github.com/jvonau/iiab-factory
git clone http://github.com/iiab/iiab

# Install iiab
curl https://raw.githubusercontent.com/iiab/iiab-factory/master/iiab > /usr/sbin/iiab
chmod 0744 /usr/sbin/iiab

# another workaround2
apt -y remove needrestart
apt -y purge needrestart
echo "needsrestart"
# issue

/opt/iiab/iiab-factory/iiab-upgrade

# put back
apt -y install needrestart
# cleanup
rm /var/cache/apt/archives/*.deb
# artifacts
mv /etc/iiab/local_vars.yml /etc/iiab/local_vars.yml.builder
cp /runme.sh /etc/iiab/builder.sh
apt list | grep installed > /etc/iiab/debs.txt

0 comments on commit 27386db

Please sign in to comment.