Ubuntu Pastebin

Paste from Geetha at Fri, 8 Jul 2016 10:17:51 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
@when_not_all 'config.default.profile_name' 'config.default.was_admin_user' 'config.default.was_admin_pw' 'config.default.profile_path'
@when_any 'config.changed.profile_name' 'config.changed.was_admin_user' 'config.changed.was_admin_pw' 'config.changed.profile_path'
function create_new_profile() {
        if [ -f $CHARM_DIR/files/was_users.txt ]; then
                source $CHARM_DIR/files/was_users.txt
                old_user_name=$user_name
                old_password=$password
                old_profile_path=$profile_path
        else
                touch $CHARM_DIR/files/was_users.txt
        fi
        if [ "$was_admin_pw" == "" ]; then
                status-set blocked "IBM WAS Base: Please set the was admin password through was_admin_pw config option."
                exit 0
        fi
}
Download as text