From 34eda3366735cea3ff9d7b0f4bf697f21e9209b7 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Sun, 13 Aug 2023 09:23:33 +0200 Subject: [PATCH] fix(install): support manually setting the init system via an argument --- install-services.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install-services.sh b/install-services.sh index 9741117..17d8bd7 100755 --- a/install-services.sh +++ b/install-services.sh @@ -4,7 +4,6 @@ set -e TMPDIR=/tmp/tedge-services LOGFILE=/tmp/tedge-services/install.log PACKAGE_REPO="community" -INIT_SYSTEM="${INIT_SYSTEM:-}" SUPPORTED_TYPES="openrc,s6_overlay,supervisord,sysvinit,sysvinit-yocto" @@ -288,7 +287,6 @@ main() { fi fi - INIT_SYSTEM= if [ -z "$INIT_SYSTEM" ]; then INIT_SYSTEM=$(get_service_manager) fi @@ -376,8 +374,8 @@ main() { # Support reading setting from environment variables DRY_RUN=${DRY_RUN:-} -VERSION=${VERSION:-} PACKAGE_MANAGER="${PACKAGE_MANAGER:-}" +INIT_SYSTEM="${INIT_SYSTEM:-}" while [ $# -gt 0 ]; do case $1 in