allow overrides for specific system version
This commit is contained in:
parent
6117364ec8
commit
cd79e35fd2
2 changed files with 33 additions and 3 deletions
11
test
11
test
|
@ -5,8 +5,6 @@ if [[ -z $DETECTED_OS ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DIR=$DETECTED_OS
|
|
||||||
|
|
||||||
if [[ $DETECTED_OS =~ .*:.* ]]; then
|
if [[ $DETECTED_OS =~ .*:.* ]]; then
|
||||||
DIR=`echo $DETECTED_OS | cut -d':' -f1`
|
DIR=`echo $DETECTED_OS | cut -d':' -f1`
|
||||||
else
|
else
|
||||||
|
@ -14,5 +12,12 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker run -v `pwd`:/root/temp/dotfiles/ $DETECTED_OS /root/temp/dotfiles/$DIR/test_insider
|
INSIDER_ROOT_DIR=/root/temp/dotfiles/
|
||||||
|
CURRENT_DIR=`pwd`
|
||||||
|
|
||||||
|
if [[ -d "$CURRENT_DIR/$DETECTED_OS" ]]; then
|
||||||
|
DIR=$DETECTED_OS
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker run -v $CURRENT_DIR:$INSIDER_ROOT_DIR $DETECTED_OS $INSIDER_ROOT_DIR/$DIR/test_insider
|
||||||
|
|
||||||
|
|
25
ubuntu:trusty/configure_fresh_system
Executable file
25
ubuntu:trusty/configure_fresh_system
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -v
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y upgrade
|
||||||
|
install_packages="sudo apt-get -y --fix-missing install apt-file aptitude aria2 atop cmake curl dkms freecad gajim git glances gnupg2 golang gparted gsmartcontrol gtk-redshift intltool kdiff3 keepass2 libatk1.0-dev libbonoboui2-dev libcairo2-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libncurses5-dev libx11-dev libxpm-dev libxt-dev linux-kernel-headers lm-sensors meld mercurial nodejs npm pv python-dev python-pip python3-pip realpath redshift retext ruby-dev silversearcher-ag terminator thunderbird thunderbird-enigmail tmux tor torsocks vim whois zsh"
|
||||||
|
|
||||||
|
set +e
|
||||||
|
for i in `seq 1 3`; do
|
||||||
|
eval $install_packages
|
||||||
|
done
|
||||||
|
|
||||||
|
set -e
|
||||||
|
eval $install_packages
|
||||||
|
|
||||||
|
if [[ -z $NO_SYSTEMCTL ]]; then
|
||||||
|
sudo systemctl enable tor
|
||||||
|
sudo systemctl start tor
|
||||||
|
fi
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
DIR="$DIR/../"
|
||||||
|
DIR="$DIR" $DIR/common/configure_fresh_system
|
Loading…
Reference in a new issue