Change extension of service file

This commit is contained in:
Maurice
2025-09-30 13:04:06 +02:00
parent 4c7d1a857e
commit 1953f8cf1c
4 changed files with 47 additions and 34 deletions

View File

@@ -9,7 +9,10 @@ cargo install podman-openrc
# Usage
```sh
podman-openrc <INPUT TOML FILE> <OUTPUT OPENRC FILE>
# For example: podman-openrc input.toml output.service.sh
# For example: podman-openrc input.toml output.service
# or:
podman-openrc ./input-folder /etc/init.d
```
# TOML service description format
@@ -70,7 +73,7 @@ read_only = true # Whether to use ro mode, optional
# Optionally you can use Podman secrets in an array
[[secrets]]
key = "<SECRET KEY>" # Secret key used in `podman secret`
target = "<TARGET SECRET FILE>" # Target secret filename in /var/run/secrets. Optional, defaults to the key
target = "<TARGET SECRET FILE>" # Target secret filename in {/var}/run/secrets. Optional, defaults to the key
# Between environment and secrets: get secret from Podman and set it as environment variable
[[environment_secrets]]