Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
290 changes: 0 additions & 290 deletions install-next.sh

This file was deleted.

22 changes: 13 additions & 9 deletions install-rc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ SYS=$([[ -L "/sbin/init" ]] && echo 'SystemD' || echo 'SystemV')
# Detect Debian/Ubuntu derivative
DEB_ID=$( (grep DISTRIB_CODENAME /etc/upstream-release/lsb-release || grep DISTRIB_CODENAME /etc/lsb-release) 2>/dev/null | cut -d'=' -f2 )

#APT Vars
APT_ENV="DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a"


if [[ ! -z $DEB ]]; then
success "Running install for Debian derivative"
elif [[ ! -z $RPM ]]; then
Expand Down Expand Up @@ -95,7 +99,7 @@ heading "Installing system dependencies..."

if [[ ! -z $DEB ]]; then
sudo apt-get update
sudo apt-get install -y git curl apt-transport-https update-notifier
sudo $APT_ENV apt-get install git curl apt-transport-https bc wget gnupg -yq
elif [[ ! -z $RPM ]]; then
sudo yum update -y
sudo yum install git curl epel-release --skip-broken -y
Expand All @@ -112,7 +116,7 @@ if [[ ! -z $DEB ]]; then
sudo wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
(echo "deb https://deb.nodesource.com/node_14.x ${DEB_ID} main" | sudo tee /etc/apt/sources.list.d/nodesource.list)
sudo apt-get update
sudo apt-get install nodejs -y
sudo $APT_ENV apt-get install nodejs -yq

elif [[ ! -z $RPM ]]; then
sudo yum install gcc-c++ make -y
Expand All @@ -128,7 +132,7 @@ if [[ ! -z $DEB ]]; then
(echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list)

sudo apt-get update
sudo apt-get install -y yarn
sudo $APT_ENV apt-get install yarn -yq
elif [[ ! -z $RPM ]]; then
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install yarn -y
Expand All @@ -149,7 +153,7 @@ success "Installed PM2!"
heading "Installing program dependencies..."

if [[ ! -z $DEB ]]; then
sudo apt-get install build-essential libcairo2-dev pkg-config libtool autoconf automake python libpq-dev jq libjemalloc-dev -y
sudo $APT_ENV apt-get install build-essential pkg-config libtool autoconf automake libpq-dev jq libjemalloc-dev -yq
elif [[ ! -z $RPM ]]; then
sudo yum groupinstall "Development Tools" -y -q
sudo yum install postgresql-devel jq jemalloc-devel -y -q
Expand All @@ -161,7 +165,7 @@ heading "Installing PostgreSQL..."

if [[ ! -z $DEB ]]; then
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib -y
sudo $APT_ENV apt-get install postgresql postgresql-contrib -yq
elif [[ ! -z $RPM ]]; then
sudo yum install postgresql-server postgresql-contrib -y

Expand All @@ -182,7 +186,7 @@ heading "Installing NTP..."
sudo timedatectl set-ntp off > /dev/null 2>&1 || true # disable the default systemd timesyncd service

if [[ ! -z $DEB ]]; then
sudo apt-get install ntp -yyq
sudo $APT_ENV apt-get install ntp -yq
if [ -z "$(sudo service ntp status |grep running)" ] ; then
sudo ntpd -gq
fi
Expand All @@ -201,9 +205,9 @@ heading "Installing system updates..."

if [[ ! -z $DEB ]]; then
sudo apt-get update
sudo apt-get upgrade -yqq
sudo apt-get dist-upgrade -yq
sudo apt-get autoremove -yyq
sudo $APT_ENV apt-get upgrade -yq
sudo $APT_ENV apt-get dist-upgrade -yq
sudo apt-get autoremove -yq
sudo apt-get autoclean -yq
elif [[ ! -z $RPM ]]; then
sudo yum update
Expand Down