mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fixes the paths to binaries
This commit is contained in:
parent
046d43fbe8
commit
a7b5b98174
@ -109,14 +109,14 @@ custom_container_init() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure custom init directory has files in it
|
# Make sure custom init directory has files in it
|
||||||
if [ -n "$(/usr/bin/ls -A "${custom_script_dir}" 2>/dev/null)" ]; then
|
if [ -n "$(/bin/ls -A "${custom_script_dir}" 2>/dev/null)" ]; then
|
||||||
echo "[custom-init] files found in ${custom_script_dir} executing"
|
echo "[custom-init] files found in ${custom_script_dir} executing"
|
||||||
# Loop over files in the directory
|
# Loop over files in the directory
|
||||||
for SCRIPT in "${custom_script_dir}"/*; do
|
for SCRIPT in "${custom_script_dir}"/*; do
|
||||||
NAME="$(basename "${SCRIPT}")"
|
NAME="$(basename "${SCRIPT}")"
|
||||||
if [ -f "${SCRIPT}" ]; then
|
if [ -f "${SCRIPT}" ]; then
|
||||||
echo "[custom-init] ${NAME}: executing..."
|
echo "[custom-init] ${NAME}: executing..."
|
||||||
/usr/bin/bash "${SCRIPT}"
|
/bin/bash "${SCRIPT}"
|
||||||
echo "[custom-init] ${NAME}: exited $?"
|
echo "[custom-init] ${NAME}: exited $?"
|
||||||
elif [ ! -f "${SCRIPT}" ]; then
|
elif [ ! -f "${SCRIPT}" ]; then
|
||||||
echo "[custom-init] ${NAME}: is not a file"
|
echo "[custom-init] ${NAME}: is not a file"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user