Trying to run a postgres script as another user from a Unit file, but variable is not being passed

I have a docker container, and -e DEV_ENV is defined with the docker run command, and this the unit file I built to run a script… [Unit] Description=Script that creates environement users and databases. After=postgresql.service [Service] Type=simple User=root Group=root ExecStart=/usr/bin/su – postgres -c ‘export DEV_ENV=$0; /usr/local/bin/psql.sh’ “$DEV_ENV” TimeoutStartSec=100 [Install] WantedBy=default.target I’m trying to run the…

Details

spend from p2sh with bitcoinj

i am try to spend the coins on a p2sh first, i generate p2sh and send coins to that p2sh ECKey clientKey = new ECKey(); ECKey serverKey = new ECKey(); ECKey thirdPartyKey = new ECKey(); List<ECKey> keys = ImmutableList.of(clientKey, serverKey,thirdPartyKey); Script multisigScript = ScriptBuilder.createP2SHOutputScript(2, keys); String address = multisigScript.getToAddress(params).toString(); then i send coins to the…

Details

Are there any strategies that would help me visualize the ‘behavior space’ and make a novelty function?

In “Abandoning Objectives: Evolution through the Search for Novelty Alone”, it is explained how the novelty search is a function that is domain specific, depending on the differing behaviors that can potentially emerge. The primary test is a deceptive maze and it seems like they define novelty as a function that is dependent on each…

Details