support executing custom commands when building image

This commit is contained in:
MaysWind
2021-01-24 10:56:02 +08:00
parent 0e642821eb
commit 20bcfe4d83
3 changed files with 16 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
CUR_DIR=$(dirname "$0");
if [ -x "${CUR_DIR}/custom-backend-pre-setup.sh" ]; then
"${CUR_DIR}"/custom-backend-pre-setup.sh
fi
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
CUR_DIR=$(dirname "$0");
if [ -x "${CUR_DIR}/custom-frontend-pre-setup.sh" ]; then
"${CUR_DIR}"/custom-frontend-pre-setup.sh
fi