#!/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} if [ ! -d /p4/${instance} ]; then exit 0 fi shift source /p4/common/bin/p4_vars $instance source /p4/common/bin/backup_functions.sh set_vars if [[ "${SERVER_TYPE}" == "p4proxy" ]]; then exit 0 fi if [[ "${P4REPLICA}" == "TRUE" ]] && [[ $EDGESERVER -eq 0 ]]; then exec $@ fi
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 24116 | Russell C. Jackson (Rusty) | Added check for proxy server. | ||
#6 | 24078 | Russell C. Jackson (Rusty) |
Added check to see if directory exists. Exit silently if not. |
||
#5 | 22981 | Russell C. Jackson (Rusty) | Made files writeable so they are easier to update once on the server. | ||
#4 | 22799 | Russell C. Jackson (Rusty) |
Removed () from set_vars call. Cut and paste mistake. |
||
#3 | 22719 | Russell C. Jackson (Rusty) | Added call to source backup_functions.sh and run set_vars. | ||
#2 | 22718 | Russell C. Jackson (Rusty) | Added check to make sure we are not on an edge server. | ||
#1 | 22693 | Russell C. Jackson (Rusty) |
Branched a Unix only version of the SDP. Removed extra items to create a cleaner tree. Moved a few items around to make more sense without Windows in the mix. |
||
//guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/run_if_replica.sh | |||||
#1 | 22686 | Russell C. Jackson (Rusty) | Two small scripts to allow using a single crontab for all servers by putting all the entries into one file and only running based on server type. |