#!/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" == "FALSE" ]] && [[ $EDGESERVER -eq 0 ]]; then exec $@ fi
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 24117 | Russell C. Jackson (Rusty) | Added check for proxy server. | ||
#5 | 24078 | Russell C. Jackson (Rusty) |
Added check to see if directory exists. Exit silently if not. |
||
#4 | 22981 | Russell C. Jackson (Rusty) | Made files writeable so they are easier to update once on the server. | ||
#3 | 22799 | Russell C. Jackson (Rusty) |
Removed () from set_vars call. Cut and paste mistake. |
||
#2 | 22719 | Russell C. Jackson (Rusty) | Added call to source backup_functions.sh and run set_vars. | ||
#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_master.sh | |||||
#2 | 22687 | Russell C. Jackson (Rusty) | Updated master to check for edge, and added script for the edge server. | ||
#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. |