Improve clarity and formatting

This commit is contained in:
TheSpad
2022-08-27 11:16:22 +01:00
parent 79c22dabaa
commit dc72e9088a
2 changed files with 46 additions and 43 deletions
+7 -4
View File
@@ -104,15 +104,15 @@ The most common paths to leverage for Linuxserver images are as follows. Assumin
└── s6-rc.d └── s6-rc.d
├── init-mods-end ├── init-mods-end
│ └── dependencies.d │ └── dependencies.d
└── init-mod-universal-mymod │ └── init-mod-universal-mymod -- If your mod does not need to install packages it should be a dependency of init-mods-end
├── init-mods-package-install ├── init-mods-package-install
│ └── dependencies.d │ └── dependencies.d
└── init-mod-universal-mymod │ └── init-mod-universal-mymod -- If your mod needs to install packages it should be a dependency of init-mods-package-install
├── init-mod-universal-mymod ├── init-mod-universal-mymod
│ ├── dependencies.d │ ├── dependencies.d
│ │ └── init-mods │ │ └── init-mods
│ ├── run -- This is the init logic script that runs before the services in the container. It needs to be `chmod +x`. │ ├── run -- This is the init logic script that runs before the services in the container. It needs to be `chmod +x`.
├── type -- This should container the string `oneshot`. │ ├── type -- This should contain the string `oneshot`.
│ └── up -- This should contain the absolute path to `run` e.g. `/etc/s6-overlay/s6-rc.d/init-mod-universal-mymod/run`. │ └── up -- This should contain the absolute path to `run` e.g. `/etc/s6-overlay/s6-rc.d/init-mod-universal-mymod/run`.
├── svc-mod-universal-mymod ├── svc-mod-universal-mymod
│ ├── dependencies.d │ ├── dependencies.d
@@ -151,7 +151,7 @@ if [ -f /sbin/apk ]; then
fi fi
``` ```
If your mod needs to take additional config steps *after* the packages have been installed, add a second `oneshot` script and make it depend on `init-mods-package-install` e.g. If your mod needs to take additional config steps *after* the packages have been installed, add a second `oneshot` script and make it depend on `init-mods-package-install` and add it as a dependency of `init-mods-end` e.g.
```text ```text
. .
@@ -159,6 +159,9 @@ If your mod needs to take additional config steps *after* the packages have been
└── etc └── etc
└── s6-overlay └── s6-overlay
└── s6-rc.d └── s6-rc.d
├── init-mods-end
│ └── dependencies.d
│ └── init-mod-universal-mymod-postinstall
└── init-mod-universal-mymod-postinstall └── init-mod-universal-mymod-postinstall
├── dependencies.d ├── dependencies.d
│ └── init-mods-package-install │ └── init-mods-package-install