SinusBot / installer-linux

💾 SinusBot Installer for Debian, Ubuntu and CentOS - Installs the SinusBot with a single command.
https://sinusbot.github.io/installer/
Other
35 stars 34 forks source link

Ubuntu 20.04 needs elseif because python is now phyton 3 #82

Open horvan opened 4 years ago

horvan commented 4 years ago

# Install necessary aptitudes for sinusbot.

magentaMessage "Installing necessary packages. Please wait..."

if [[ -f /etc/centos-release ]]; then
  yum -y -q install screen xvfb libxcursor1 ca-certificates bzip2 psmisc libglib2.0-0 less cron-apt ntp python iproute which dbus libnss3 libegl1-mesa x11-xkb-utils libasound2 libxcomposite-dev libxi6 libpci3 libxslt1.1 libxkbcommon0 libxss1 >/dev/null
  update-ca-trust extract >/dev/null
else
  # Detect if systemctl is available then use systemd as start script. Otherwise use init.d
  if [ "$OSRELEASE" == "18.04" ] && [ "$OS" == "ubuntu" ]; then
    apt-get -y install chrony
  else
    apt-get -y install ntp
  fi
  apt-get -y -qq install libfontconfig libxtst6 screen xvfb libxcursor1 ca-certificates bzip2 psmisc libglib2.0-0 less cron-apt **python** iproute2 dbus libnss3 libegl1-mesa x11-xkb-utils libasound2 libxcomposite-dev libxi6 libpci3 libxslt1.1 libxkbcommon0 libxss1
  update-ca-certificates >/dev/null
fi
...

must be named as phyton3 in Ubuntu 20.04 Focal fassa. By applying this change sinunsbot works like a charm again.

Lulalaby commented 4 years ago

@flyth