3
0
corteza/provision/update.sh
Denis Arh 4cf522ddab Add service-cloud configs
Change file naming for CRM configs so it can go side-to-side with
service-cloud.
2019-11-13 10:49:19 +01:00

37 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
function download {
SRC="https://raw.githubusercontent.com/cortezaproject/corteza-configs/${1}"
DST=${2}
echo -ne "\033[32m${DST}\033[39m (${SRC}) ..."
curl -s $SRC > ${DST}
echo "done"
}
# ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------
function getCrmConfig {
NAMES="1000_namespace 1100_modules 1200_charts 1300_scripts 1400_pages 1500_record_settings"
for NAME in $NAMES; do
download "master/crm/${NAME}.yaml" "./compose/src/${NAME}_crm.yaml"
done
}
getCrmConfig
# ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------ ------
function getServiceCloudConfig {
NAMES="1000_namespace 1100_modules 1200_charts 1300_scripts 1400_pages 1500_record_settings"
for NAME in $NAMES; do
download "master/service-cloud/${NAME}.yaml" "./compose/src/${NAME}_service_cloud.yaml"
done
}
getServiceCloudConfig