-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_apps.sh
More file actions
executable file
·48 lines (36 loc) · 1.35 KB
/
install_apps.sh
File metadata and controls
executable file
·48 lines (36 loc) · 1.35 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#
# This script installs applications.
#
# This is the main script for installing applications. It calls other scripts to
# install applications via different package managers (e.g. apt, snap, flatpak, yay).
#
if [[ "$BASE_FOLDER" == '' ]]; then
BASE_FOLDER=~/mydata/projects/private/shell-tools/setup_linux_box
fi
OPERATING_SYSTEM=$(uname -o)
LINUX_DISTRIBUTION=$(cat /etc/os-release | sed -nE 's/^NAME="(.*)"$/\1/p')
if [[ "${OPERATING_SYSTEM}" == 'GNU/Linux' ]]; then
# Install Linux apps ...
if [[ "${LINUX_DISTRIBUTION}" == 'EndeavourOS' || "${LINUX_DISTRIBUTION}" == 'Arch Linux' ]]; then
echo ">>>> Installing via yay ..."
$BASE_FOLDER/install_apps_yay.sh
echo ">>>> Installing flatpak applications ..."
$BASE_FOLDER/install_apps_flatpak.sh
else
echo ">>>> apt update ..."
sudo apt update
echo ">>>> Installing via apt ..."
$BASE_FOLDER/install_apps_apt.sh
echo ">>>> Installing deb files ..."
$BASE_FOLDER/install_apps_deb.sh
echo ">>>> Installing the Docker engine ..."
$BASE_FOLDER/install_docker_engine.sh
echo ">>>> Installing snap applications ..."
$BASE_FOLDER/install_apps_snap.sh
fi
fi
if [[ "$OPERATING_SYSTEM" == 'Darwin' ]]; then
# Install macOS apps ...
echo "TODO: Install macOS apps"
fi