github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/simpleexample/SimpleDomain/initsimpleexampletpm2 (about)

     1  #
     2  source ./defines
     3  
     4  if [[ -e $DOMAINTPM2 ]]
     5  then
     6    echo "$DOMAINTPM2 exists"
     7  else
     8    mkdir $DOMAINTPM2
     9    mkdir $DOMAINTPM2/policy_keys
    10    echo "$DOMAIN created"
    11  fi
    12  
    13  if [[ -e $TEMPLATETPM2 ]]
    14  then
    15    echo "$TEMPLATETPM2 exists"
    16  else
    17    cp $OLD_TEMPLATETPM2 $TEMPLATETPM2
    18    echo "$OLDTEMPLATETPM2 copied to $TEMPLATETPM2"
    19  fi
    20  
    21  if [[ -e $DOMAINTPM2/linux_tao_host ]]
    22  then
    23    echo "$DOMAINTPM2/linux_tao_host exists"
    24  else
    25    mkdir $DOMAINTPM2/linux_tao_host
    26    echo "$DOMAINTPM2/linux_tao_host created"
    27  fi
    28