This repository was archived by the owner on Nov 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinuxPMI.sh
More file actions
executable file
·33 lines (30 loc) · 1.46 KB
/
linuxPMI.sh
File metadata and controls
executable file
·33 lines (30 loc) · 1.46 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
#!/bin/bash
################################################################################
#
# linuxPMI acts as the intermediary between the server Botler is being hosted
# on and the linux master installer. To prevent any conflict with updates to
# the installer, this script has as little code as deemed necessary. In
# addition, linuxPMI is the only script that will remain on the system.
#
# Note: The only thing the end user should ever change abou this file, is
# 'botler_version' and 'installer_branch'. Though, please read the
# documentation before messing with anything in this script.
#
################################################################################
#
export linuxPMI_revision="4" # Keeps track of changes to linuxPMI.sh
export botler_version="latest" # Determins which version of Botler is used
export installer_branch="dev" # Determins which installer branch is used
# Checks to see if this script was executed with root privilege
if ((EUID != 0)); then
echo "Please run this script as root or with root privilege" >&2
echo -e "\nExiting..."
exit 1
fi
echo "Downloading 'linux-master-installer.sh'..."
wget -N https://raw.githubusercontent.com/Botler-Dev/Installer/$installer_branch/linux-master-installer.sh || {
echo "Failed to download 'linux-master-installer.sh'..." >&2
echo -e "\nExiting..."
exit 1
}
chmod +x linux-master-installer.sh && ./linux-master-installer.sh