diff --git a/scripts/make_packages.sh b/scripts/make_packages.sh index 5f6729bde..d33caf191 100755 --- a/scripts/make_packages.sh +++ b/scripts/make_packages.sh @@ -142,7 +142,6 @@ fpm -s dir -t deb -n "${PKG_NAME}" \ -C "${PKG_IMG_DIR}" \ -p "${PKG_PATH_DEB}" \ -a "${PKG_ARCH_DEB}" \ - --depends lsb-release \ --after-install "${PKG_SRC_DIR}/after_install" \ --before-remove "${PKG_SRC_DIR}/before_remove" \ --after-remove "${PKG_SRC_DIR}/after_remove" \ @@ -159,7 +158,6 @@ fpm -s dir -t rpm -n "${PKG_NAME}" \ -C "${PKG_IMG_DIR}" \ -p "${PKG_PATH_RPM}" \ -a "${PKG_ARCH_RPM}" \ - --depends redhat-lsb-core \ --after-install "${PKG_SRC_DIR}/after_install" \ --before-remove "${PKG_SRC_DIR}/before_remove" \ --after-remove "${PKG_SRC_DIR}/after_remove" \ diff --git a/scripts/package_src/nimbus_beacon_node/after_install b/scripts/package_src/nimbus_beacon_node/after_install index 3311c3f7d..14abb0916 100644 --- a/scripts/package_src/nimbus_beacon_node/after_install +++ b/scripts/package_src/nimbus_beacon_node/after_install @@ -1,11 +1,15 @@ #!/bin/bash - set -e -DISTRO=$(lsb_release -si) +DISTRO="UNKNOWN" +if [[ -r /etc/os-release ]]; then + source /etc/os-release + DISTRO="${ID}" +fi + if ! id -u nimbus > /dev/null 2>&1; then case $DISTRO in - Ubuntu|Debian) + Ubuntu|ubuntu|Debian|debian) # Debian uses `adduser` to create user... adduser --system --no-create-home --group nimbus ;; diff --git a/scripts/package_src/nimbus_validator_client/after_install b/scripts/package_src/nimbus_validator_client/after_install index 3311c3f7d..8ac966f2e 100644 --- a/scripts/package_src/nimbus_validator_client/after_install +++ b/scripts/package_src/nimbus_validator_client/after_install @@ -2,10 +2,15 @@ set -e -DISTRO=$(lsb_release -si) +DISTRO="UNKNOWN" +if [[ -r /etc/os-release ]]; then + . /etc/os-release + DISTRO="${ID}" +fi + if ! id -u nimbus > /dev/null 2>&1; then case $DISTRO in - Ubuntu|Debian) + Ubuntu|ubuntu|Debian|debian) # Debian uses `adduser` to create user... adduser --system --no-create-home --group nimbus ;;