add note about custom script/service folders

pull/55/head
Paul 2022-04-22 17:47:10 +02:00
rodzic 42cfedbff4
commit c73a6d7b23
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 20C692A6C6307F2E
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -29,6 +29,8 @@ echo "**** installing ffmpeg ****"
apk add --no-cache ffmpeg apk add --no-cache ffmpeg
``` ```
**NOTE:** The folder `/config/custom-cont-init.d` needs to be owned by root! If this is not the case, this folder will be renamed and a new (empty) folder will be created. This is to prevent remote code execution by putting scripts in the aforementioned folder.
## Custom Services ## Custom Services
There might also be a need to run an additional service in a container alongside what we already package. Similarly to the custom scripts, just create a new directory at `/config/custom-services.d`. The files in this directory should be named after the service they will be running. There might also be a need to run an additional service in a container alongside what we already package. Similarly to the custom scripts, just create a new directory at `/config/custom-services.d`. The files in this directory should be named after the service they will be running.
@ -43,6 +45,8 @@ Running cron in our containers is now as simple as a single file. Drop this scri
**NOTE:** With this example, you will most likely need to have cron installed via a custom script using the technique in the previous section, and will need to populate the crontab. **NOTE:** With this example, you will most likely need to have cron installed via a custom script using the technique in the previous section, and will need to populate the crontab.
**NOTE:** The folder `/config/custom-services.d` needs to be owned by root! If this is not the case, this folder will be renamed and a new (empty) folder will be created. This is to prevent remote code execution by putting scripts in the aforementioned folder.
## Docker Mods ## Docker Mods
In most cases if you needed to write some kind of custom logic to get a plugin to work or to use some kind of popular external service you will not be the only one that finds this logic useful. In most cases if you needed to write some kind of custom logic to get a plugin to work or to use some kind of popular external service you will not be the only one that finds this logic useful.