run_if_edge.sh #1

  • //
  • guest/
  • perforce_software/
  • sdp/
  • main/
  • Server/
  • Unix/
  • p4/
  • common/
  • bin/
  • run_if_edge.sh
  • View
  • Commits
  • Open Download .zip Download (575 B)
#!/usr/bin/env bash
#==============================================================================
# Copyright and license info is available in the LICENSE file included with
# the Server Deployment Package (SDP), and also available online:
# https://swarm.workshop.perforce.com/projects/perforce-software-sdp/view/main/LICENSE
#------------------------------------------------------------------------------

set -e
instance=${1}
shift
source /p4/common/bin/p4_vars $instance
source /p4/common/bin/backup_functions.sh
set_vars
if [[ $EDGESERVER -eq 1 ]]; then
   exec $@
fi
# Change User Description Committed
#2 31369 C. Thomas Tyler Released SDP 2024.2.31367 (2025/03/23).
Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'.
#1 23006 C. Thomas Tyler Released SDP 2017.3.23003 (2017/10/19).
Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'.
//guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/run_if_edge.sh
#3 22800 Russell C. Jackson (Rusty) Correct the logic on checking for an edge server.
Removed () from the set_vars call that got in via a cut and paste.
#2 22751 Russell C. Jackson (Rusty) Updated edge_dump with fixes in my branch and updated run_if* scripts in perforce sdp in case review for common crontab is approved.
#1 22687 Russell C. Jackson (Rusty) Updated master to check for edge, and added script for the edge server.