Skip to content

Commit

Permalink
Test refactoring common scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
isboston committed Jan 23, 2025
1 parent e01720d commit 7224292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
deb_build:
description: 'Trigger DEB build'
required: false
default: 'true'
default: 'false'
rpm_build:
description: 'Trigger RPM build'
required: false
Expand Down
4 changes: 2 additions & 2 deletions install/common/systemd/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ reassign_values (){
write_to_file () {
[[ -n ${SYSTEMD_ENVIRONMENT} ]] && sed "/^ExecStart=/a Environment=${SYSTEMD_ENVIRONMENT}" -i "$BUILD_PATH"/${PRODUCT}-"${SERVICE_NAME[$i]}".service
[[ -n ${DEPENDENCY_LIST} ]] && sed -e "s_\(After=.*\)_\1 ${DEPENDENCY_LIST}_" -e "/After=/a Wants=${DEPENDENCY_LIST}" -i "$BUILD_PATH"/${PRODUCT}-"${SERVICE_NAME[$i]}".service
sed -i -e "s#\${SERVICE_NAME}#${SERVICE_NAME[i]}#g" -e "s#\${WORK_DIR}#${WORK_DIR}#g" -e "s#\${RESTART}#${RESTART}#g" -e "s#\${SYSTEMD_ENVIRONMENT_FILE}#${SYSTEMD_ENVIRONMENT_FILE}#g" \
-e "s#\${EXEC_START}#${EXEC_START}#g" -e "s#\${SERVICE_TYPE}#${SERVICE_TYPE}#g" "$BUILD_PATH/${PRODUCT}-${SERVICE_NAME[i]}.service"
sed -i -e 's#${SERVICE_NAME}#'$SERVICE_NAME'#g' -e 's#${WORK_DIR}#'$WORK_DIR'#g' -e "s#\${RESTART}#$RESTART#g" -e "s#\${SYSTEMD_ENVIRONMENT_FILE}#$SYSTEMD_ENVIRONMENT_FILE#g" \
-e "s#\${EXEC_START}#$EXEC_START#g" -e "s#\${SERVICE_TYPE}#$SERVICE_TYPE#g" $BUILD_PATH/${PRODUCT}-${SERVICE_NAME[$i]}.service
}

mkdir -p "$BUILD_PATH"
Expand Down

0 comments on commit 7224292

Please sign in to comment.