This leads to a file with a non-usable content for a bash script, because the shebang is not in the first line of the script.
# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
# script file for xxx
#
#!/bin/sh
set -e
(...)
In my opinion, the template dockerfile_script.j2 should only contain the content of the input field
Due to the header of the
dockerfile_script.j2
file, the script can't be used as entrypoint for the Dockerfile.This leads to a file with a non-usable content for a bash script, because the shebang is not in the first line of the script.
In my opinion, the template
dockerfile_script.j2
should only contain the content of the input field