Browse Source

platform script

merge-requests/2/head
Steven Foerster 6 years ago
parent
commit
b839ba8d30
  1. 14
      scripts/install.sh
  2. 14
      scripts/subinstallers/platform.sh

14
scripts/install.sh

@ -57,18 +57,8 @@ echo -e "| | | | \__ \ |_| |_) | (_) | | | | | |"
echo -e "|_| |_|_|___/\__|_.__/ \___/|_| |_| |_|" echo -e "|_| |_|_|___/\__|_.__/ \___/|_| |_| |_|"
echo -e "" echo -e ""
# Get OS info # get os and distro
# Determine OS platform source ./scripts/subinstallers/platform.sh
UNAME=$(uname | tr "[:upper:]" "[:lower:]")
DISTRO=""
# If Linux, try to determine specific distribution
if [ "$UNAME" == "linux" ]; then
# use /etc/os-release to get distro
DISTRO=$(cat /etc/os-release | awk -F= '/^ID=/{print $2}')
fi
echo "UNAME: $UNAME"
echo "DISTRO: $DISTRO"
# INPUT default admin password # INPUT default admin password
if [ -z "${MISTBORN_DEFAULT_PASSWORD}" ]; then if [ -z "${MISTBORN_DEFAULT_PASSWORD}" ]; then

14
scripts/subinstallers/platform.sh

@ -0,0 +1,14 @@
#!/bin/bash
# Get OS info
# Determine OS platform
UNAME=$(uname | tr "[:upper:]" "[:lower:]")
DISTRO=""
# If Linux, try to determine specific distribution
if [ "$UNAME" == "linux" ]; then
# use /etc/os-release to get distro
DISTRO=$(cat /etc/os-release | awk -F= '/^ID=/{print $2}')
fi
echo "UNAME: $UNAME"
echo "DISTRO: $DISTRO"
Loading…
Cancel
Save