INITIALISE manifest

This commit is contained in:
qo-op 2020-04-30 00:34:57 +02:00
parent 52040dae78
commit b2de15e0d5
1 changed files with 6 additions and 5 deletions

View File

@ -56,11 +56,6 @@ if [[ -d ~/.ssb ]]; then
[[ -L ~/.ssb ]] && rm ~/.ssb
[[ -d ~/.ssb_astroport ]] && ln -s ~/.ssb_astroport ~/.ssb
# INITIALISE manifest
printf '{"manifest":"sync"}' > ~/.ssb/manifest.json
ssb-server start &
sbotc -t async manifest > ~/.ssb/manifest.json
else
echo "You must remove '~/.ssb' before running $ME";
exit 1;
@ -144,4 +139,10 @@ login (salt) : $salt
password : $pepper
"
# INITIALISE manifest
[[ $ssbSERVER ]] && [[ ! -f ~/.ssb/manifest.json ]] && printf '{"manifest":"sync"}' > ~/.ssb/manifest.json
[[ $ssbSERVER ]] && ssb-server start &
[[ $ssbSERVER ]] && [[ ! -f ~/.ssb/manifest.json ]] && sbotc -t async manifest > ~/.ssb/manifest.json
exit 0