Fix: Make management commands aware of the container environment (#9499)

This commit is contained in:
Trenton H
2025-03-26 14:17:10 -07:00
committed by GitHub
parent 6e694ad9ff
commit 9c68100dc0
11 changed files with 44 additions and 15 deletions

View File

@@ -18,9 +18,10 @@ for command in decrypt_documents \
document_fuzzy_match \
manage_superuser \
convert_mariadb_uuid \
prune_audit_logs;
prune_audit_logs \
createsuperuser;
do
echo "installing $command..."
sed "s/management_command/$command/g" management_script.sh >"$PWD/rootfs/usr/local/bin/$command"
chmod +x "$PWD/rootfs/usr/local/bin/$command"
chmod u=rwx,g=rwx,o=rx "$PWD/rootfs/usr/local/bin/$command"
done