Skip to content

Commit

Permalink
Merge pull request #27 from thin-edge/fix-manually-set-init-system
Browse files Browse the repository at this point in the history
fix(install): support manually setting the init system via an argument
  • Loading branch information
reubenmiller authored Aug 13, 2023
2 parents 9b128a5 + 34eda33 commit 4d7b800
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -288,7 +287,6 @@ main() {
fi
fi

INIT_SYSTEM=
if [ -z "$INIT_SYSTEM" ]; then
INIT_SYSTEM=$(get_service_manager)
fi
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4d7b800

Please sign in to comment.