#!/bin/bash #------------------------------------------------------------------------------ set -u function msg () { echo -e "$*"; } function errmsg () { msg "\\nError: ${1-Unknown Error}\\n"; ErrorCount+=1; } function bail () { errmsg "${1-Unknown Error}"; exit "${2:-1}"; } declare TmpFile= TmpFile=$(mktemp) cd /depotdata/reset || bail "Could not cd to: /depotdata/reset" if [[ -r reset_sdp.sh.txt ]]; then mv reset_sdp.sh.txt reset_sdp.sh chmod +x reset_sdp.sh fi ./reset_sdp.sh -C > settings2.cfg.orig sed -e "s:^OSUSER=.*:OSUSER=cooldude:g" \ -e "s:^OSUSER_HOME=.*:OSUSER_HOME=/home/cooldude:g" \ -e "s:^OSGROUP=.*:OSGROUP=heroes:g" \ -e "s:^P4USER=.*:P4USER=superman:g" \ -e "s:^HxDepots=.*:HxDepots=/depotdata:g" \ -e "s:^HxLogs=.*:HxLogs=/logs:g" \ -e "s:^HxMetadata1=.*:HxMetadata1=/metadata:g" \ -e "s:^HxMetadata2=.*:HxMetadata2=/metadata:g" \ -e "s:^Instance=.*:Instance=fgs2:g" \ settings2.cfg.orig > settings2.cfg ./reset_sdp.sh -c settings2.cfg -fast -no_ssl -no_sd -no_ppr 2>&1 | tee log.reset_sdp.test_settings2.txt msg "Checking that OS user cooldude got created, doing: id -u cooldude" if id -u cooldude; then msg "Verified: OS User cooldude exists." else msg "Error: OS User cooldude does NOT exist." exit 1 fi msg "Checking that P4USER superman is configured." su - cooldude -c "/p4/common/bin/p4master_run fgs2 p4 set -q P4USER" > "$TmpFile" if grep superman "$TmpFile"; then msg "Verified: P4USER superman is configured." else msg "Error: P4USER superman is NOT configured." exit 1 fi
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 27421 | Robert Cowham |
Branching //guest/perforce_software/helix-installer/main/... to //guest/perforce_software/helix-installer/azure-quickstart/... |
||
//guest/perforce_software/helix-installer/main/test/hi_test_settings2.sh | |||||
#2 | 26831 | C. Thomas Tyler | Released HelixInstaller/MultiArch/2020.1/26829 (2020/10/07). | ||
#1 | 26793 | C. Thomas Tyler | Released HelixInstaller/MultiArch/2020.1/26784 (2020/09/25). | ||
//guest/perforce_software/helix-installer/dev/test/hi_test_settings2.sh | |||||
#1 | 26784 | C. Thomas Tyler |
reset_sdp.sh v3.17.0: Made /hx* mount points configurable in settings.cfg, and updated documentation accordingly. Added support for configuring /hxmetadata1 and /hxmetadata2 with different values. Added test coverage for changing /hxdepots from the default. Enhanced test suite. TEST FAIL NOTE: As of this change, tests are succeeding on all platforms except CentOS 6. Failures are in the test suite infrastructure, not related to this change. |