-
Notifications
You must be signed in to change notification settings - Fork 1
/
findAndReplaceMe
50 lines (49 loc) · 2.35 KB
/
findAndReplaceMe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# beware that slashs have to be escaped
YOURCOMPANY="foobar"
CERT_COMPANYNAME="foobar llc"
CERT_COUNTRY="BL"
CERT_LOCALITY="blub"
CERT_PROVINCE="bla"
LOGGINGFILE="\/tmp\/mlaps.log"
DOWNLOADURL="https:\/\/github.com\/lzuba-tgm\/mlaps\/blob\/master\/mlaps_client.sh"
PATHTOWHEREYOURDOCKERIMAGELIVES="ghcr.io\/lzuba\/mlaps:master"
BASEPRODUCTIONPATHTOKEYCLOAK="http:\/\/auth\/auth\/"
SUPPORTPATH="\/var\/root\/Library\/Application Support"
#YOURCOMPANY
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" docker/nginx/mlaps.conf
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" docker/keycloak/dev.json
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" docker/vault/setup.sh
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" app/secrets-dev.json
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" app/config-dev.ini
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" app/config-sample.ini
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" linux_test.sh
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" mlaps_client.sh
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" dev_enroll.sh
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" client_install.sh
sed -i -- "s/\$YOURCOMPANY/$YOURCOMPANY/g" docker-compose.base.yml
#CERT_COMPANYNAME
sed -i -- "s/\$CERT_COMPANYNAME/$CERT_COMPANYNAME/g" docker/vault/setup.sh
#CERT_COUNTRY
sed -i -- "s/\$CERT_COUNTRY/$CERT_COUNTRY/g" docker/vault/setup.sh
sed -i -- "s/\$CERT_COUNTRY/$CERT_COUNTRY/g" mlaps_client.sh
sed -i -- "s/\$CERT_COUNTRY/$CERT_COUNTRY/g" dev_enroll.sh
sed -i -- "s/\$CERT_COUNTRY/$CERT_COUNTRY/g" linux_test.sh
#CERT_LOCALITY
sed -i -- "s/\$CERT_LOCALITY/$CERT_LOCALITY/g" docker/vault/setup.sh
#CERT_PROVINCE
sed -i -- "s/\$CERT_PROVINCE/$CERT_PROVINCE/g" docker/vault/setup.sh
#LOGGINGFILE
sed -i -- "s/\$LOGGINGFILE/$LOGGINGFILE/g" client_install.sh
sed -i -- "s/\$LOGGINGFILE/$LOGGINGFILE/g" mlaps_client.sh
sed -i -- "s/\$LOGGINGFILE/$LOGGINGFILE/g" dev_enroll.sh
sed -i -- "s/\$LOGGINGFILE/$LOGGINGFILE/g" linux_test.sh
#DOWNLOADURL
sed -i -- "s/\$DOWNLOADURL/$DOWNLOADURL/g" client_install.sh
#PATHTOWHEREYOURDOCKERIMAGELIVES
sed -i -- "s/\$PATHTOWHEREYOURDOCKERIMAGELIVES/$PATHTOWHEREYOURDOCKERIMAGELIVES/g" docker/mlaps/mlaps-prod.Dockerfile
#BASEPRODUCTIONPATHTOKEYCLOAK
sed -i -- "s/\$BASEPRODUCTIONPATHTOKEYCLOAK/$BASEPRODUCTIONPATHTOKEYCLOAK/g" app/config-sample.ini
#SUPPORTPATH
sed -i -- "s/\$SUPPORTPATH/$SUPPORTPATH/g" mlaps_client.sh
sed -i -- "s/\$SUPPORTPATH/$SUPPORTPATH/g" dev_enroll.sh