/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to scripts/system/adminer.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2018-04-12 16:12:39 UTC
  • Revision ID: csa@suren.me-20180412161239-o8qgw3kazwipnnt2
Create bazaar authentication.conf if information is available in environment

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    echo "ADEI Configuration"
14
14
    echo "------------------"
15
15
    env | grep 'MYSQL_SERVER'
16
 
    env | grep 'ADEI_' | grep -v "_SERVICE_" | grep -v "_PORT"
 
16
    env | grep 'ADEI_' | grep -v "_SERVICE_" | grep -v "_PORT" | grep -v "PASSWORD"
17
17
}
18
18
 
19
19
function adei_debug {
39
39
            bzr config --scope=bazaar ssl.cert_reqs=none
40
40
        fi
41
41
 
 
42
        if [ -n "$ADEI_REPOSITORY" -a -n "$ADEI_REPOSITORY_USER" -a ! -f "$HOME"/.bazaar/authentication.conf ]; then
 
43
            host=$(echo $ADEI_REPOSITORY | grep -oP '//\K[^/]*')
 
44
            if [ -n "$ADEI_REPOSITORY_PASSWORD" ]; then
 
45
                passline="password=$ADEI_REPOSITORY_PASSWORD"
 
46
            else
 
47
                passline="#password="
 
48
            fi
 
49
 
 
50
            cat << EOF > "$HOME"/.bazaar/authentication.conf
 
51
[adei]
 
52
host=$host
 
53
user=$ADEI_REPOSITORY_USER
 
54
$passline
 
55
EOF
 
56
        fi
 
57
 
42
58
        openshift_info
43
59
        echo
44
60
        adei_info