Clone the main branch of the repository https://github.com/sap-linuxlab/community.sap_install.git.
Run the command tools/prepare-files.sh
of the repo https://gitlab.cee.redhat.com/sap-linuxlab/redhat.sap_install to prepare
certain downstream files which differ from their upstream versions.
Before executing, check the variable settings of the script. Their meaning is as follows:
UPSTREAM_COLLECTION_PATH
: The directory where you cloned the upstream repoPREPARE_SAP_INSTALL
: The directory into which this repo has been clonedDOWNSTREAM_COLLECTION_PATH
: A directory into which the modified files will be copiedtools/prepare-files.sh
script, copy the files from DOWNSTREAM_COLLECTION_PATH
over the corresponding files in the cloned upstream repo UPSTREAM_COLLECTION_PATH
.UPSTREAM_COLLECTION_PATH=~/.ansible/collections/ansible_collections/community/sap_install
DOWNSTREAM_COLLECTION_PATH=~/.ansible/collections/ansible_collections/built-redhat.sap_install
cd ${DOWNSTREAM_COLLECTION_PATH}/files
for file in $(find . -type f); do
_PATH=$(dirname $file)
_FILE=$(basename $file)
cp ${_PATH}/${_FILE} ${UPSTREAM_COLLECTION_PATH}/${_PATH}/${_FILE}
done