Skip to content

suggested fix for $ is escaped in systemd file, preventing use of environment variables #157

@le-walton

Description

@le-walton

There is a existing bug $ is escaped in systemd file, preventing use of environment variables

I don't see a easy fix for fix all cases when "$" is used. Having a flag for not escaping seems problematic.
but having a flag that inserts "${ENV_OPTION_1}" as the second argument does solve most use cases that I could think of.
Example:
pleaserun --env-option 1 --name foo /usr/local/bin/foo
With the end result being:
ExecStart=/usr/local/bin/foo "$ENV_OPTION_1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions