Add enc key to correct homedir, finish env for systemd
This commit is contained in:
parent
64d7e032a0
commit
cffc207b24
@ -1,2 +1,2 @@
|
|||||||
cic-cache==0.2.1a10
|
cic-cache==0.2.1a10
|
||||||
clicada==0.0.1a7
|
clicada==0.0.1a8
|
||||||
|
7
setup.sh
7
setup.sh
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
want_cic_cache_version=0.2.1a10
|
want_cic_cache_version=0.2.1a10
|
||||||
want_cicada_version=0.0.1a7
|
want_cicada_version=0.0.1a8
|
||||||
#want_evm=bloxberg
|
#want_evm=bloxberg
|
||||||
want_evm=
|
want_evm=
|
||||||
|
|
||||||
@ -84,9 +84,8 @@ if [ ! -f "$HOME/.config/cic/staff-client/key_fingerprint" ]; then
|
|||||||
dbg $dbg_info "using key $AUTH_KEY"
|
dbg $dbg_info "using key $AUTH_KEY"
|
||||||
fi
|
fi
|
||||||
export AUTH_KEY=`cat $HOME/.config/cic/staff-client/key_fingerprint`
|
export AUTH_KEY=`cat $HOME/.config/cic/staff-client/key_fingerprint`
|
||||||
export AUTH_KEYRING_PATH=$HOME/.config/staff-client/.gnupg
|
export AUTH_KEYRING_PATH=$HOME/.config/cic/staff-client/.gnupg
|
||||||
export
|
export AUTH_DB_PATH=$HOME/.local/share/cic/clicada
|
||||||
|
|
||||||
fi
|
fi
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
@ -72,6 +72,6 @@ gpg --homedir $HOME/.config/cic/staff-client/.gnupg --export -a > $HOME/.config/
|
|||||||
|
|
||||||
gpg --list-packets $HOME/.config/cic/staff-client/user.asc | awk '/issuer fpr/ { print $9; }' | cut -b -40 > $HOME/.config/cic/staff-client/key_fingerprint
|
gpg --list-packets $HOME/.config/cic/staff-client/user.asc | awk '/issuer fpr/ { print $9; }' | cut -b -40 > $HOME/.config/cic/staff-client/key_fingerprint
|
||||||
|
|
||||||
gpg --homedir $t --pinentry-mode loopback --passphrase-file $password_file --quick-add-key `cat $HOME/.config/cic/staff-client/key_fingerprint` default encrypt 0
|
gpg --homedir $HOME/.config/cic/staff-client/.gnupg --pinentry-mode loopback --passphrase-file $password_file --quick-add-key `cat $HOME/.config/cic/staff-client/key_fingerprint` default encrypt 0
|
||||||
|
|
||||||
shred -v $password_file
|
shred -v $password_file
|
||||||
|
@ -18,3 +18,5 @@ done
|
|||||||
cp -v systemd/bin/cic_cache_server_start.sh $HOME/.local/bin/
|
cp -v systemd/bin/cic_cache_server_start.sh $HOME/.local/bin/
|
||||||
|
|
||||||
chmod -v 750 $HOME/.local/bin/cic_cache_server_start.sh
|
chmod -v 750 $HOME/.local/bin/cic_cache_server_start.sh
|
||||||
|
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
4
systemd/env/01-cic-cache-server.conf
vendored
4
systemd/env/01-cic-cache-server.conf
vendored
@ -1,6 +1,6 @@
|
|||||||
RPC_PROVIDER={{RPC_PROVIDER}}
|
RPC_PROVIDER={{RPC_PROVIDER}}
|
||||||
CHAIN_SPEC={{CHAIN_SPEC}}
|
CHAIN_SPEC={{CHAIN_SPEC}}
|
||||||
SERVER_HOST=localhost
|
SERVER_HOST=localhost
|
||||||
SERVER_PORT=8636
|
SERVER_PORT=8313
|
||||||
TX_CACHE_URL=http://localhost:8636
|
TX_CACHE_URL=http://localhost:8313
|
||||||
#META_URL=
|
#META_URL=
|
||||||
|
Loading…
Reference in New Issue
Block a user