Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separator is no longer prepended when prefix is empty on podman generate systemd #13299

Commits on Mar 17, 2022

  1. Separator is no longer prepended when prefix is empty on podman gener…

    …ate systemd
    
    When podman generate systemd is invoked, it previously did not check if
    container-prefix or pod-prefix are empty. When these are empty, the file name
    starts with the separator, which is hyphen by default. This results in files
    like '-containername.service'.
    
    The code now checks if these prefixes are empty. If they are, the filename no
    longer adds a separator. Instead, it uses name or ID of the container or pod.
    
    Closes containers#13272
    
    Signed-off-by: Nirmal Patel <npate012@gmail.com>
    nirmal-j-patel committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    714e5a1 View commit details
    Browse the repository at this point in the history