Compare commits
2 commits
0de748ae94
...
3d1ff926c4
Author | SHA1 | Date | |
---|---|---|---|
Julien Oculi | 3d1ff926c4 | ||
Julien Oculi | 6bc7ff1b61 |
33
_requirements.sh
Normal file
33
_requirements.sh
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# Install nala
|
||||||
|
apt update
|
||||||
|
apt upgrade -y
|
||||||
|
apt install -y nala f
|
||||||
|
|
||||||
|
# Install base utilities
|
||||||
|
echo "[server_config] > Installing required utilities (base)"
|
||||||
|
nala install -y \
|
||||||
|
curl \
|
||||||
|
unzip \
|
||||||
|
ffmpeg \
|
||||||
|
|
||||||
|
# Install admin-sys utilities
|
||||||
|
echo "[server_config] > Installing required utilities (admin-sys)"
|
||||||
|
nala install -y \
|
||||||
|
lsb-release \
|
||||||
|
nmap \
|
||||||
|
xxd \
|
||||||
|
|
||||||
|
# Install comfort utilities
|
||||||
|
echo "[server_config] > Installing required utilities (comfort)"
|
||||||
|
nala install -y \
|
||||||
|
bat \
|
||||||
|
fzf \
|
||||||
|
tmux \
|
||||||
|
tmate \
|
||||||
|
|
||||||
|
# Install really necessary utilities
|
||||||
|
echo "[server_config] > Installing required utilities (really necessary)"
|
||||||
|
nala install -y \
|
||||||
|
cmatrix \
|
||||||
|
cowsay \
|
||||||
|
sl \
|
|
@ -1,7 +1,7 @@
|
||||||
APPS=$@
|
APPS=$@
|
||||||
|
|
||||||
if [[ $1 == "*" && $# -eq 1 ]]; then
|
if [[ $1 == "*" && $# -eq 1 ]]; then
|
||||||
APPS=$(ls .)
|
APPS=$(ls -d */)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for app in "$APPS"
|
for app in "$APPS"
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
|
# Install requirements
|
||||||
|
echo "[server_config] > Installing required utilities"
|
||||||
|
source ./_requirements.sh
|
||||||
|
|
||||||
|
# Install services
|
||||||
APPS=$@
|
APPS=$@
|
||||||
|
|
||||||
if [[ $1 == "*" && $# -eq 1 ]]; then
|
if [[ $1 == "*" && $# -eq 1 ]]; then
|
||||||
APPS=$(ls .)
|
APPS=$(ls -d */)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for app in "$APPS"
|
for app in "$APPS"
|
||||||
|
|
Loading…
Reference in a new issue