mirror of https://github.com/sipwise/ngcpcfg.git
We will use this new action to handle database actions that are currently done in the commit action. These need to be performed after build and before service, so that any service restart will have the correct grants and schema changes to be able to operate correctly. Change-Id: Ia13c40bcd219902fa523f989d3f1f686fdff93a1mr26.0
parent
48ba665f85
commit
ad0cf94b46
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# Purpose: perform post-build actions
|
||||
################################################################################
|
||||
|
||||
set -e
|
||||
set -u
|
||||
set -o pipefail
|
||||
|
||||
# support testsuite
|
||||
FUNCTIONS="${FUNCTIONS:-/usr/share/ngcp-ngcpcfg/functions/}"
|
||||
|
||||
if ! [ -r "${FUNCTIONS}"/main ]; then
|
||||
printf "Error: %s/main could not be read. Exiting.\n" "${FUNCTIONS}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# shellcheck source=./functions/main
|
||||
. "${FUNCTIONS}"/main
|
||||
|
||||
# main script
|
||||
|
||||
cd "$NGCPCTL_MAIN"
|
||||
|
||||
# XXX: Skeleton for incremental deployment.
|
||||
|
||||
## END OF FILE #################################################################
|
||||
Loading…
Reference in new issue