forked from Deblok-Workshop/kasm-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appstore.sh
28 lines (22 loc) · 779 Bytes
/
appstore.sh
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
if [ "$EUID" -ne 0 ]; then
printf "$BBLUE[i]$OFF |$BLUE This script needs to be run as root. Attempting to elevate...$OFF\n"
sudo "bash" "$0" "$@"
exit $?
fi
DEBIAN_FRONTEND=noninteractive
echo "[ ########## WARNING! PLEASE READ!!! ########## ]"
echo "THIS ONLY WORKS ON DEBIAN/UBUNTU CONTAINERS -----"
echo "IF YOU ARENT IN ONE SWITCH TO ONE OR PRESS CTRL+C"
echo "Waiting 3 seconds..."
sleep 3
# Install SNAP
sudo apt -y update
sudo apt -y install snapd
sudo snap install core
sudo snap install snap-store
# Install Flatpak
sudo apt -y install flatpak
sudo apt -y install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
clear
echo "Snap and Flatpak have been installed successfully."