export PS1='$USER@${HOSTNAME%%.*}:$PWD ' alias md='mkdir -p' alias rd=rmdir alias cls=clear alias o='p4 opened ...' # Add 'p4h' help alias to pipe pages of help docs to 'less', a popular pager. # Sample Usage: p4h dvcs function p4h () { p4 help "$*" | less; } [[ -r /p4/common/bin/p4_vars ]] && source /p4/common/bin/p4_vars EDITME_SDP_INSTANCE #------------------------------------------------------------------------------ # Independent per-terminal session command history. Over time, this will # create a number of history files that can be cleaned with a command like # this sample, which removes all shell history files over a year old. # $ find ~/.hist -type f -mtime +365 -exec rm -f {} \; #------------------------------------------------------------------------------ [[ ! -d ~/.hist ]] && mkdir ~/.hist export HISTFILESIZE=5000 export HISTTIMEFORMAT="%Y/%m/%d %Z %H:%M:%S " export HISTFILE=~/.hist/history.$$.$RANDOM # If you invoke command completion with a path that references a shell variable, # by default the command completion injects an annoying backslash in front of # the '$' character, thus breaking the completion. For example, if you type # 'ls $LOGS/p4' and hit Tab to invoke command completion, it'll get # transmogrified to '\$LOGS/p4', and the completion no longer works. The # 'shopt -s direxpand' disables expansion, which fixes this problem. When you # hit the tab, $LOGS will get expanded the directory, e.g. '/p4/1/logs', and # you the expansion will be '/p4/1/logs/p4', and the tab completion will then # work as expected. shopt -s direxpand
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 30782 | C. Thomas Tyler |
Added new install_sdp.sh script and supporting documentation. The new install_sdp.sh makes SDP independent of the separate Helix Installer software (the reset_sdp.sh script). The new script greatly improves the installation experience for new server machines. It is ground up rewrite of the reset_sdp.sh script. The new script preserves the desired behaviors of the original Helix Installer script, but is focused on the use case of a fresh install on a new server machine. With this focus, the scripts does not have any "reset" logic, making it completely safe. Added various files and functionalityfrom Helix Installer into SDP. * Added firewalld templates to SDP, and added ufw support. * Improved sudoers generation. * Added bash shell templates. This script also installs in the coming SDP Package structure. New installs use a modified SDP structure that makes it so the /p4/sdp and /p4/common now point to folders on the local OS volume rather than the /hxepots volume. The /hxdepots volume, which is often NFS mounted, is still used for depots and checkpoints, and for backups. The new structure uses a new /opt/perforce/helix-sdp structure under which /p4/sdp and /p4/common point. This structure also contains the expaneded SDP tarball, downloads, helix_binaries, etc. This change represents the first of 3-phase rollout of the new package structure. In this first phase, the "silent beta" phase, the new structure is used for new installations only. This phase requires no changes to released SDP scripts except for mkdirs.sh, and even that script remains backward-compatible with the old structure if used independently of install_sdp.sh. If used with install_sdp.sh, the new structure is used. In the second phase (targeted for SPD 2024.2 release), the sdp_upgrade.sh script will convert existing installations to the new structure. In the third phase (targeted for SDP 2025.x), this script will be incorporated into OS pacakge installations for the helix-sdp package. Perforce internal wikis have more detail on this change. #review-30783 |