Merge branch 'dev' of https://github.com/openreplay/openreplay into dev
* 'dev' of https://github.com/openreplay/openreplay: Making domain_name mandatory chore(script): remove logo
This commit is contained in:
commit
6bc2a43b80
2 changed files with 16 additions and 5 deletions
|
|
@ -2,6 +2,22 @@
|
|||
|
||||
set -o errtrace
|
||||
|
||||
# Check for a valid domain_name
|
||||
domain_name=`grep domain_name vars.yaml | grep -v "example" | cut -d " " -f2 | cut -d '"' -f2`
|
||||
# Ref: https://stackoverflow.com/questions/15268987/bash-based-regex-domain-name-validation
|
||||
[[ $(echo $domain_name | grep -P '(?=^.{5,254}$)(^(?:(?!\d+\.)[a-zA-Z0-9_\-]{1,63}\.?)+(?:[a-zA-Z]{2,})$)') ]] || {
|
||||
echo "OpenReplay Needs a valid domain name for captured sessions to replay. For example, openreplay.mycompany.com"
|
||||
echo "Please enter your domain name"
|
||||
read domain_name
|
||||
[[ -z domain_name ]] && {
|
||||
echo "OpenReplay won't work without domain name. Exiting..."
|
||||
exit 1
|
||||
} || {
|
||||
sed -i "s#domain_name.*#domain_name: \"${domain_name}\" #g" vars.yaml
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Installing k3s
|
||||
curl -sL https://get.k3s.io | sudo K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION='v1.19.5+k3s2' INSTALL_K3S_EXEC="--no-deploy=traefik" sh -
|
||||
mkdir ~/.kube
|
||||
|
|
|
|||
|
|
@ -84,11 +84,6 @@ This script will install and configure OpenReplay apps and databases on the kube
|
|||
which is accesd with the ${HOME}/.kube/config or $KUBECONFIG env variable.
|
||||
'''
|
||||
cat << EOF
|
||||
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
█░▄▄▀█░▄▄█░▄▄▀█░██░█░▄▄█░▄▄▀██
|
||||
█░▀▀░█▄▄▀█░▀▀░█░▀▀░█░▄▄█░▀▀▄██
|
||||
█▄██▄█▄▄▄█▄██▄█▀▀▀▄█▄▄▄█▄█▄▄██
|
||||
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
|
||||
EOF
|
||||
echo -e "${green}Usage: openreplay-cli [ -h | --help ]
|
||||
[ -v | --verbose ]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue