forked from cytopia/ansible-debian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap
executable file
·50 lines (36 loc) · 962 Bytes
/
bootstrap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
set -eu
# Default profile to use
# Overwrite via command line argument
PROFILE="${1:-kalos-jiji}"
if ! command -v sudo >/dev/null 2>&1; then
>&2 echo "This script requires 'sudo' binary to be installed"
exit 1
fi
if [ "$(id -u)" -eq "0" ]; then
>&2 echo "This script must be run as normal user"
exit 1
fi
###
### Install requirements to use this repository
###
sudo DEBIAN_FRONTEND=noninteractive apt update -qq
sudo apt-get install --no-install-recommends --no-install-suggests -y \
git \
make
###
### Download GitHub repository
###
git clone https://github.com/kalos/ansible-debian-workstation
cd ansible-debian-workstation
###
### Deploy
###
# (Step 1/4) Ensure required software is present
sudo make deploy-init
# (Step 2/4) Add new Debian sources
make deploy-apt-sources PROFILE=${PROFILE}
# (Step 3/4) dist-upgrade your system
sudo make deploy-dist-upgrade
# (Step 3/3) Deploy your system
make deploy-tools PROFILE=${PROFILE}