We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bff63c5 commit 5bc3a6dCopy full SHA for 5bc3a6d
helix-p4d/docker-startup.d/45-database-upgrade.sh
@@ -2,15 +2,16 @@
2
3
set -e
4
5
-# check that the p4d service is already configured
6
-if ! gosu perforce p4dctl list 2>/dev/null | grep -q "${P4NAME}"; then
+# only perform database upgrade if explicitly allowed
+if [[ "${P4D_DATABASE_UPGRADE}" != "true" ]]; then
7
exit 0
8
fi
9
10
-# only perform database upgrade if explicitly allowed
11
-if [[ "${P4D_DATABASE_UPGRADE}" != "true" ]]; then
+# check that the p4d service is already configured
+if ! gosu perforce p4dctl list 2>/dev/null | grep -q "${P4NAME}"; then
12
13
14
15
# enable database upgrade on next run
16
+echo "Running database upgrade procedure..."
17
gosu perforce p4dctl exec -t p4d "${P4NAME}" -- -xu
0 commit comments