-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathboot.sh
More file actions
32 lines (23 loc) · 1.1 KB
/
boot.sh
File metadata and controls
32 lines (23 loc) · 1.1 KB
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
#!/bin/bash
set -euo pipefail
banner='▗▖ ▗▖▗▄▄▖ ▗▄▄▄▖▗▖ ▗▖▗▖ ▗▖ ▗▄▖ ▗▄▄▄▄▖▗▄▄▄▖
▐▌ ▐▌▐▌ ▐▌ █ ▐▛▚▖▐▌▐▌▗▞▘▐▌ ▐▌ ▗▞▘▐▌
▐▌ ▐▌▐▛▀▚▖ █ ▐▌ ▝▜▌▐▛▚▖ ▐▛▀▜▌ ▗▞▘ ▐▛▀▀▘
▝▚▄▞▘▐▙▄▞▘▗▄█▄▖▐▌ ▐▌▐▌ ▐▌▐▌ ▐▌▐▙▄▄▄▖▐▙▄▄▖
'
echo -e "$banner"
echo "=> Ubinkaze is for fresh Ubuntu Server 24.04 installations only!"
echo -e "\nBegin installation (or abort with ctrl+c)..."
sudo apt-get update >/dev/null
sudo apt-get install -y git >/dev/null
echo "Cloning Ubinkaze..."
rm -rf ~/.local/share/ubinkaze
git clone https://github.com/felipefontoura/ubinkaze.git ~/.local/share/ubinkaze >/dev/null
UBINKAZE_REF=${UBINKAZE_REF:-"stable"}
if [[ $UBINKAZE_REF != "main" ]]; then
cd ~/.local/share/ubinkaze
git fetch origin "$UBINKAZE_REF" && git checkout "$UBINKAZE_REF"
cd - >/dev/null
fi
echo "Installation starting..."
source ~/.local/share/ubinkaze/install.sh