update
This commit is contained in:
parent
9690fac181
commit
974002c0d3
2 changed files with 32 additions and 0 deletions
32
installers/install.sh
Normal file
32
installers/install.sh
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Check if the user is root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root. Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if the user is running a 64-bit system
|
||||
if [[ $(uname -m) != "x86_64" ]]; then
|
||||
echo "This script must be run on a 64-bit system. Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if the user is running a supported shell
|
||||
if [[ $(echo $SHELL) != "/bin/bash" ]]; then
|
||||
echo "This script must be run on a system running Bash. Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if the user is running a supported OS
|
||||
if [[ $(uname -s) != "Linux" ]]; then
|
||||
echo "This script must be run on a Linux system. Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if the user is running a supported distro
|
||||
if [[ $(cat /etc/os-release | grep -w "ID_LIKE" | cut -d "=" -f 2) != "debian" ]]; then
|
||||
echo "This script must be run on a Debian-based system. Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
0
installers/ubuntu-22/install.sh
Normal file
0
installers/ubuntu-22/install.sh
Normal file
Loading…
Add table
Reference in a new issue