cashless2ecash

cashless2ecash: pay with cards for digital cash (experimental)
Log | Files | Refs | README

setup (1045B)


      1 #!/bin/bash
      2 
      3 # to install the app with non-default values
      4 # uncomment the line you want to change and
      5 # the belonging value
      6 
      7 #export C2EC_HOME=$HOME/c2ec-test-installation
      8 #export C2EC_USER=$(whoami)
      9 #export C2EC_POSTGRES_USER=postgres
     10 #export C2EC_POSTGRES_PASSWORD=postgres
     11 #export C2EC_DB_NAME=postgres
     12 #export C2EC_DB_ADMIN_PW=secret
     13 #export C2EC_DB_OPERATOR_PW=secret
     14 #export C2EC_DB_API_PW=secret
     15 #export C2EC_FILE_PERMISSIONS=660
     16 
     17 # The install command must be issued once and never again without doing 
     18 # a backup before executing again. (It will overwrite existing configurations)
     19 # This will setup the database and the required files inside C2EC_HOME
     20 # make install
     21 
     22 # This will compile the c2ec executable and save it to C2EC_HOME
     23 make build
     24 
     25 # This will compile the c2ec cli and save it to C2EC_HOME
     26 make cli
     27 
     28 # This will compile the simulation and save it to C2EC_HOME
     29 make simulation
     30 
     31 # This will migrate the database
     32 make migrate
     33 
     34 unset C2EC_POSTGRES_PASSWORD
     35 unset C2EC_DB_ADMIN_PW
     36 unset C2EC_DB_OPERATOR_PW
     37 unset C2EC_DB_API_PW