Skip to content

Commit

Permalink
Fix cosmetic issues in OCI scripts (#145)
Browse files Browse the repository at this point in the history
Co-authored-by: Evgeniy Antonyuk <[email protected]>
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/DocSpace-buildtools/pulls/145
Co-authored-by: Vladimir Ischenko <[email protected]>
Co-committed-by: Vladimir Ischenko <[email protected]>
  • Loading branch information
isboston and evgeniy-antonyuk committed Jan 16, 2025
1 parent 9267b0d commit e4d938c
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 94 deletions.
20 changes: 10 additions & 10 deletions install/OneClickInstall/docspace-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,35 +148,35 @@ if [ -z "$DOCKER" ]; then
read_installation_method
fi

if [ -z $GIT_BRANCH ]; then
if [ -z "$GIT_BRANCH" ]; then
DOWNLOAD_URL_PREFIX="https://download.${product_sysname}.com/${product}"
else
DOWNLOAD_URL_PREFIX="https://raw.githubusercontent.com/${product_sysname^^}/${product}-buildtools/${GIT_BRANCH}/install/OneClickInstall"
fi

if [ "$DOCKER" == "true" ]; then
if [ "$LOCAL_SCRIPTS" == "true" ]; then
bash install-Docker.sh ${PARAMETERS} || EXIT_CODE=$?
bash install-Docker.sh "${PARAMETERS}" || EXIT_CODE=$?
else
curl -s -O ${DOWNLOAD_URL_PREFIX}/install-Docker.sh
bash install-Docker.sh ${PARAMETERS} || EXIT_CODE=$?
curl -s -O "${DOWNLOAD_URL_PREFIX}"/install-Docker.sh
bash install-Docker.sh "${PARAMETERS}" || EXIT_CODE=$?
rm install-Docker.sh
fi
else
if [ -f /etc/redhat-release ] ; then
if [ "$LOCAL_SCRIPTS" == "true" ]; then
bash install-RedHat.sh ${PARAMETERS} || EXIT_CODE=$?
bash install-RedHat.sh "${PARAMETERS}" || EXIT_CODE=$?
else
curl -s -O ${DOWNLOAD_URL_PREFIX}/install-RedHat.sh
bash install-RedHat.sh ${PARAMETERS} || EXIT_CODE=$?
curl -s -O "${DOWNLOAD_URL_PREFIX}"/install-RedHat.sh
bash install-RedHat.sh "${PARAMETERS}" || EXIT_CODE=$?
rm install-RedHat.sh
fi
elif [ -f /etc/debian_version ] ; then
if [ "$LOCAL_SCRIPTS" == "true" ]; then
bash install-Debian.sh ${PARAMETERS} || EXIT_CODE=$?
bash install-Debian.sh "${PARAMETERS}" || EXIT_CODE=$?
else
curl -s -O ${DOWNLOAD_URL_PREFIX}/install-Debian.sh
bash install-Debian.sh ${PARAMETERS} || EXIT_CODE=$?
curl -s -O "${DOWNLOAD_URL_PREFIX}"/install-Debian.sh
bash install-Debian.sh "${PARAMETERS}" || EXIT_CODE=$?
rm install-Debian.sh
fi
else
Expand Down
12 changes: 6 additions & 6 deletions install/OneClickInstall/install-Debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ if [ "${UNINSTALL}" == "true" ]; then
if [ "${LOCAL_SCRIPTS}" == "true" ]; then
source install-Debian/uninstall.sh
else
source <(curl -fsSL ${DOWNLOAD_URL_PREFIX}/uninstall.sh)
source <(curl -fsSL "${DOWNLOAD_URL_PREFIX}"/uninstall.sh)
fi
exit 0
fi
Expand All @@ -174,7 +174,7 @@ else
fi

# add onlyoffice repo
mkdir -p -m 700 $HOME/.gnupg
mkdir -p -m 700 "$HOME"/.gnupg
echo "deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] http://download.onlyoffice.com/repo/debian squeeze main" | tee /etc/apt/sources.list.d/onlyoffice.list
curl -fsSL https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/onlyoffice.gpg --import
chmod 644 /usr/share/keyrings/onlyoffice.gpg
Expand All @@ -189,8 +189,8 @@ if [ "${LOCAL_SCRIPTS}" == "true" ]; then
source install-Debian/install-preq.sh
source install-Debian/install-app.sh
else
source <(curl ${DOWNLOAD_URL_PREFIX}/tools.sh)
source <(curl ${DOWNLOAD_URL_PREFIX}/check-ports.sh)
source <(curl ${DOWNLOAD_URL_PREFIX}/install-preq.sh)
source <(curl ${DOWNLOAD_URL_PREFIX}/install-app.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/tools.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/check-ports.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/install-preq.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/install-app.sh)
fi
46 changes: 23 additions & 23 deletions install/OneClickInstall/install-Debian/install-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ case "${INSTALLATION_TYPE}" in
esac

if [ "$UPDATE" = "true" ] && [ "$DOCUMENT_SERVER_INSTALLED" = "true" ]; then
ds_pkg_installed_name=$(dpkg -l | grep ${package_sysname}-documentserver | tail -n1 | awk '{print $2}')
ds_pkg_installed_name=$(dpkg -l | grep "${package_sysname}"-documentserver | tail -n1 | awk '{print $2}')
if [ -n "${ds_pkg_installed_name}" ] && [ "${ds_pkg_installed_name}" != "${ds_pkg_name}" ]; then
debconf-get-selections | grep ^${ds_pkg_installed_name} | sed s/${ds_pkg_installed_name}/${ds_pkg_name}/g | debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt-get purge -yq ${ds_pkg_installed_name}
apt-get install -yq ${ds_pkg_name}
debconf-get-selections | grep ^"${ds_pkg_installed_name}" | sed s/"${ds_pkg_installed_name}"/"${ds_pkg_name}"/g | debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt-get purge -yq "${ds_pkg_installed_name}"
apt-get install -yq "${ds_pkg_name}"
RECONFIGURE_PRODUCT="true"
else
apt-get install -y --only-upgrade ${ds_pkg_name}
apt-get install -y --only-upgrade "${ds_pkg_name}"
fi
fi

Expand All @@ -41,40 +41,40 @@ if [ "$DOCUMENT_SERVER_INSTALLED" = "false" ]; then
DS_JWT_SECRET=${DS_JWT_SECRET:-$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)}
DS_JWT_HEADER=${DS_JWT_HEADER:-AuthorizationJwt}

if ! su - postgres -s /bin/bash -c "psql -lqt" | cut -d \| -f 1 | grep -q ${DS_DB_NAME}; then
if ! su - postgres -s /bin/bash -c "psql -lqt" | cut -d \| -f 1 | grep -q "${DS_DB_NAME}"; then
su - postgres -s /bin/bash -c "psql -c \"CREATE USER ${DS_DB_USER} WITH password '${DS_DB_PWD}';\""
su - postgres -s /bin/bash -c "psql -c \"CREATE DATABASE ${DS_DB_NAME} OWNER ${DS_DB_USER};\""
fi

echo ${package_sysname}-documentserver $DS_COMMON_NAME/ds-port select $DS_PORT | sudo debconf-set-selections
echo ${package_sysname}-documentserver $DS_COMMON_NAME/db-pwd select $DS_DB_PWD | sudo debconf-set-selections
echo ${package_sysname}-documentserver $DS_COMMON_NAME/db-user select $DS_DB_USER | sudo debconf-set-selections
echo ${package_sysname}-documentserver $DS_COMMON_NAME/db-name select $DS_DB_NAME | sudo debconf-set-selections
echo ${package_sysname}-documentserver $DS_COMMON_NAME/jwt-enabled select ${DS_JWT_ENABLED} | sudo debconf-set-selections
echo ${package_sysname}-documentserver $DS_COMMON_NAME/jwt-secret select ${DS_JWT_SECRET} | sudo debconf-set-selections
echo ${package_sysname}-documentserver $DS_COMMON_NAME/jwt-header select ${DS_JWT_HEADER} | sudo debconf-set-selections
echo "${package_sysname}"-documentserver "$DS_COMMON_NAME"/ds-port select "$DS_PORT" | sudo debconf-set-selections
echo "${package_sysname}"-documentserver "$DS_COMMON_NAME"/db-pwd select "$DS_DB_PWD" | sudo debconf-set-selections
echo "${package_sysname}"-documentserver "$DS_COMMON_NAME"/db-user select "$DS_DB_USER" | sudo debconf-set-selections
echo "${package_sysname}"-documentserver "$DS_COMMON_NAME"/db-name select "$DS_DB_NAME" | sudo debconf-set-selections
echo "${package_sysname}"-documentserver "$DS_COMMON_NAME"/jwt-enabled select "${DS_JWT_ENABLED}" | sudo debconf-set-selections
echo "${package_sysname}"-documentserver "$DS_COMMON_NAME"/jwt-secret select "${DS_JWT_SECRET}" | sudo debconf-set-selections
echo "${package_sysname}"-documentserver "$DS_COMMON_NAME"/jwt-header select "${DS_JWT_HEADER}" | sudo debconf-set-selections

apt-get install -yq ${ds_pkg_name}
apt-get install -yq "${ds_pkg_name}"
fi

if [ "$MAKESWAP" == "true" ]; then
make_swap
fi

if [ "$PRODUCT_INSTALLED" = "false" ]; then
echo ${product} ${product}/db-pwd select $MYSQL_SERVER_PASS | sudo debconf-set-selections
echo ${product} ${product}/db-user select $MYSQL_SERVER_USER | sudo debconf-set-selections
echo ${product} ${product}/db-name select $MYSQL_SERVER_DB_NAME | sudo debconf-set-selections
echo "${product}" "${product}"/db-pwd select "$MYSQL_SERVER_PASS" | sudo debconf-set-selections
echo "${product}" "${product}"/db-user select "$MYSQL_SERVER_USER" | sudo debconf-set-selections
echo "${product}" "${product}"/db-name select "$MYSQL_SERVER_DB_NAME" | sudo debconf-set-selections

apt-get install -y ${product} || true #Fix error 'Failed to fetch'
apt-get install -y ${product}
apt-get install -y "${product}" || true #Fix error 'Failed to fetch'
apt-get install -y "${product}"
elif [ "$UPDATE" = "true" ] && [ "$PRODUCT_INSTALLED" = "true" ]; then
CURRENT_VERSION=$(dpkg-query -W -f='${Version}' ${product} 2>/dev/null)
AVAILABLE_VERSIONS=$(apt show ${product} 2>/dev/null | grep -E '^Version:' | awk '{print $2}')
CURRENT_VERSION=$(dpkg-query -W -f='${Version}' "${product}" 2>/dev/null)
AVAILABLE_VERSIONS=$(apt show "${product}" 2>/dev/null | grep -E '^Version:' | awk '{print $2}')
if [[ "$AVAILABLE_VERSIONS" != *"$CURRENT_VERSION"* ]]; then
apt-get install -o DPkg::options::="--force-confnew" -y --only-upgrade ${product} opensearch=${ELASTIC_VERSION}
apt-get install -o DPkg::options::="--force-confnew" -y --only-upgrade "${product}" opensearch="${ELASTIC_VERSION}"
elif [ "${RECONFIGURE_PRODUCT}" = "true" ]; then
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure ${product}
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure "${product}"
fi
fi

Expand Down
26 changes: 13 additions & 13 deletions install/OneClickInstall/install-Debian/install-preq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ELASTIC_VERSION="2.18.0"
export OPENSEARCH_INITIAL_ADMIN_PASSWORD="$(echo "${package_sysname}!A1")"

#add opensearch dashboards repo
if [ ${INSTALL_FLUENT_BIT} == "true" ]; then
if [ "${INSTALL_FLUENT_BIT}" == "true" ]; then
curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring
echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable main" > /etc/apt/sources.list.d/opensearch-dashboards-2.x.list
DASHBOARDS_VERSION="2.18.0"
Expand All @@ -54,7 +54,7 @@ curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash -
if [ "$DIST" = "ubuntu" ]; then
add-apt-repository -y ppa:dotnet/backports
elif [ "$DIST" = "debian" ]; then
curl https://packages.microsoft.com/config/$DIST/$REV/packages-microsoft-prod.deb -O
curl https://packages.microsoft.com/config/"$DIST"/"$REV"/packages-microsoft-prod.deb -O
echo -e "Package: *\nPin: origin \"packages.microsoft.com\"\nPin-Priority: 1002" | tee /etc/apt/preferences.d/99microsoft-prod.pref
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
fi
Expand All @@ -69,23 +69,23 @@ if ! dpkg -l | grep -q "mysql-server"; then
MYSQL_SERVER_PASS=${MYSQL_SERVER_PASS:-"$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 12)"}

# setup mysql 8.4 package
curl -OL http://repo.mysql.com/${MYSQL_PACKAGE_NAME}
curl -OL http://repo.mysql.com/"${MYSQL_PACKAGE_NAME}"
echo "mysql-apt-config mysql-apt-config/repo-codename select $DISTRIB_CODENAME" | debconf-set-selections
echo "mysql-apt-config mysql-apt-config/repo-distro select $DIST" | debconf-set-selections
echo "mysql-apt-config mysql-apt-config/select-server select mysql-8.4-lts" | debconf-set-selections
DEBIAN_FRONTEND=noninteractive dpkg -i ${MYSQL_PACKAGE_NAME}
rm -f ${MYSQL_PACKAGE_NAME}
DEBIAN_FRONTEND=noninteractive dpkg -i "${MYSQL_PACKAGE_NAME}"
rm -f "${MYSQL_PACKAGE_NAME}"

echo mysql-community-server mysql-community-server/root-pass password ${MYSQL_SERVER_PASS} | debconf-set-selections
echo mysql-community-server mysql-community-server/re-root-pass password ${MYSQL_SERVER_PASS} | debconf-set-selections
echo mysql-community-server mysql-community-server/root-pass password "${MYSQL_SERVER_PASS}" | debconf-set-selections
echo mysql-community-server mysql-community-server/re-root-pass password "${MYSQL_SERVER_PASS}" | debconf-set-selections
echo mysql-community-server mysql-server/default-auth-override select "Use Strong Password Encryption (RECOMMENDED)" | debconf-set-selections
echo mysql-server mysql-server/root_password password ${MYSQL_SERVER_PASS} | debconf-set-selections
echo mysql-server mysql-server/root_password_again password ${MYSQL_SERVER_PASS} | debconf-set-selections
echo mysql-server mysql-server/root_password password "${MYSQL_SERVER_PASS}" | debconf-set-selections
echo mysql-server mysql-server/root_password_again password "${MYSQL_SERVER_PASS}" | debconf-set-selections
elif dpkg -l | grep -q "mysql-apt-config" && [ "$(apt-cache policy mysql-apt-config | awk 'NR==2{print $2}')" != "${MYSQL_REPO_VERSION}" ]; then
curl -OL http://repo.mysql.com/${MYSQL_PACKAGE_NAME}
DEBIAN_FRONTEND=noninteractive dpkg -i ${MYSQL_PACKAGE_NAME}
rm -f ${MYSQL_PACKAGE_NAME}
DEBIAN_FRONTEND=noninteractive dpkg -i "${MYSQL_PACKAGE_NAME}"
rm -f "${MYSQL_PACKAGE_NAME}"
fi
# add redis repo --- temporary fix for complete installation on Ubuntu 24.04. REDIS_DIST_CODENAME change to DISTRIB_CODENAME
Expand Down Expand Up @@ -142,12 +142,12 @@ apt-get install -o DPkg::options::="--force-confnew" -yq \
JAVA_PATH=$(find /usr/lib/jvm/ -name "java" -path "*temurin-${JAVA_VERSION}*" | head -1)
update-alternatives --install /usr/bin/java java "$JAVA_PATH" 100 && update-alternatives --set java "$JAVA_PATH"
if [ ${INSTALL_FLUENT_BIT} == "true" ]; then
if [ "${INSTALL_FLUENT_BIT}" == "true" ]; then
[[ "$DISTRIB_CODENAME" =~ noble ]] && FLUENTBIT_DIST_CODENAME="jammy" || FLUENTBIT_DIST_CODENAME="${DISTRIB_CODENAME}"
curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/$DIST/$FLUENTBIT_DIST_CODENAME $FLUENTBIT_DIST_CODENAME main" | tee /etc/apt/sources.list.d/fluent-bit.list
apt update
apt-get install -yq opensearch-dashboards=${DASHBOARDS_VERSION} fluent-bit
apt-get install -yq opensearch-dashboards="${DASHBOARDS_VERSION}" fluent-bit
fi
# disable apparmor for mysql
Expand Down
18 changes: 9 additions & 9 deletions install/OneClickInstall/install-Debian/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ make_swap () {

AVAILABLE_DISK_SPACE=$(df -m / | tail -1 | awk '{ print $4 }')
TOTAL_MEMORY=$(free --mega | grep -oP '\d+' | head -n 1)
EXIST=$(swapon -s | awk '{ print $1 }' | { grep -x ${SWAPFILE} || true; })
EXIST=$(swapon -s | awk '{ print $1 }' | { grep -x "${SWAPFILE}" || true; })

if [[ -z $EXIST ]] && [ ${TOTAL_MEMORY} -lt ${MEMORY_REQUIREMENTS} ] && [ ${AVAILABLE_DISK_SPACE} -gt ${DISK_REQUIREMENTS} ]; then
if [[ -z $EXIST ]] && [ "${TOTAL_MEMORY}" -lt ${MEMORY_REQUIREMENTS} ] && [ "${AVAILABLE_DISK_SPACE}" -gt ${DISK_REQUIREMENTS} ]; then
touch "${SWAPFILE}"
[[ "$(df -T / | awk 'NR==2{print $2}')" = "btrfs" ]] && chattr +C "${SWAPFILE}"
fallocate -l 6G ${SWAPFILE}
chmod 600 ${SWAPFILE}
mkswap ${SWAPFILE}
swapon ${SWAPFILE}
fallocate -l 6G "${SWAPFILE}"
chmod 600 "${SWAPFILE}"
mkswap "${SWAPFILE}"
swapon "${SWAPFILE}"
echo "$SWAPFILE none swap sw 0 0" >> /etc/fstab
fi
}
Expand Down Expand Up @@ -54,19 +54,19 @@ check_hardware () {

AVAILABLE_DISK_SPACE=$(df -m / | tail -1 | awk '{ print $4 }')

if [ ${AVAILABLE_DISK_SPACE} -lt ${DISK_REQUIREMENTS} ]; then
if [ "${AVAILABLE_DISK_SPACE}" -lt ${DISK_REQUIREMENTS} ]; then
echo "Minimal requirements are not met: need at least $DISK_REQUIREMENTS MB of free HDD space"
exit 1
fi

TOTAL_MEMORY=$(free --mega | grep -oP '\d+' | head -n 1)

if [ ${TOTAL_MEMORY} -lt ${MEMORY_REQUIREMENTS} ]; then
if [ "${TOTAL_MEMORY}" -lt ${MEMORY_REQUIREMENTS} ]; then
echo "Minimal requirements are not met: need at least $MEMORY_REQUIREMENTS MB of RAM"
exit 1
fi

CPU_CORES_NUMBER=$(cat /proc/cpuinfo | grep processor | wc -l)
CPU_CORES_NUMBER=$(grep -c ^processor /proc/cpuinfo)

if [ ${CPU_CORES_NUMBER} -lt ${CORE_REQUIREMENTS} ]; then
echo "The system does not meet the minimal hardware requirements. CPU with at least $CORE_REQUIREMENTS cores is required"
Expand Down
2 changes: 1 addition & 1 deletion install/OneClickInstall/install-Docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ check_hardware () {
exit 1
fi

CPU_CORES_NUMBER=$(cat /proc/cpuinfo | grep processor | wc -l)
CPU_CORES_NUMBER=$(grep -c ^processor /proc/cpuinfo)

if [ ${CPU_CORES_NUMBER} -lt ${CORE_REQUIREMENTS} ]; then
echo "The system does not meet the minimal hardware requirements. CPU with at least $CORE_REQUIREMENTS cores is required"
Expand Down
12 changes: 6 additions & 6 deletions install/OneClickInstall/install-RedHat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ if [ "${UNINSTALL}" == "true" ]; then
if [ "${LOCAL_SCRIPTS}" == "true" ]; then
source install-RedHat/uninstall.sh
else
source <(curl -fsSL ${DOWNLOAD_URL_PREFIX}/uninstall.sh)
source <(curl -fsSL "${DOWNLOAD_URL_PREFIX}"/uninstall.sh)
fi
exit 0
fi
Expand All @@ -179,9 +179,9 @@ if [ "$LOCAL_SCRIPTS" = "true" ]; then
source install-RedHat/install-preq.sh
source install-RedHat/install-app.sh
else
source <(curl ${DOWNLOAD_URL_PREFIX}/tools.sh)
source <(curl ${DOWNLOAD_URL_PREFIX}/bootstrap.sh)
source <(curl ${DOWNLOAD_URL_PREFIX}/check-ports.sh)
source <(curl ${DOWNLOAD_URL_PREFIX}/install-preq.sh)
source <(curl ${DOWNLOAD_URL_PREFIX}/install-app.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/tools.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/bootstrap.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/check-ports.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/install-preq.sh)
source <(curl "${DOWNLOAD_URL_PREFIX}"/install-app.sh)
fi
4 changes: 2 additions & 2 deletions install/OneClickInstall/install-RedHat/check-ports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cat<<EOF
EOF

if rpm -qa | grep ${product}; then
if rpm -qa | grep "${product}"; then
echo "${product} $RES_APP_INSTALLED"
PRODUCT_INSTALLED="true"
elif [ "${UPDATE}" != "true" ] && netstat -lnp | awk '{print $4}' | grep -qE ":80$|:8080$|:8081$|:8083$|:5001$|:5002$"; then
Expand All @@ -21,7 +21,7 @@ else
PRODUCT_INSTALLED="false"
fi

if rpm -qa | grep ${package_sysname}-documentserver; then
if rpm -qa | grep "${package_sysname}"-documentserver; then
echo "${package_sysname}-documentserver $RES_APP_INSTALLED"
DOCUMENT_SERVER_INSTALLED="true"
elif [ "${UPDATE}" != "true" ] && netstat -lnp | awk '{print $4}' | grep -qE ":8083$|:5432$|:5672$|:6379$|:8000$|:8080$"; then
Expand Down
Loading

0 comments on commit e4d938c

Please sign in to comment.