komrade update!

posting
quadrismegistus 4 years ago
parent 067636c8af
commit 24c1701e08

@ -0,0 +1,17 @@
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
wd=`pwd`
path=`realpath "$SCRIPTPATH/../../data"`
echo "Removing $path. You will permanently lose your users and contacts. Proceed? "
read -p "[Y/n] " y_n
echo $y_n
if [ ! "$y_n" = "y" ]; then
echo "Cancelling"
else
rm -r $path
echo "Reregistering..."
komrade-cli /register
fi

@ -284,6 +284,9 @@ class TheOperator(Operator):
'status': f"{OPERATOR_INTRO}I'm sorry, but I can't register the name of {name}."
}
# save QR also?
self.save_uri_as_qrcode(uri_id=uri_id,name=name)
# compose result
res = {
'success':success,

@ -54,7 +54,7 @@ then
echo "Use HTTPS or SSH for git?"
read -p "[HTPS/ssh] " git_method
if [ git_method=="ssh" ]
if [ "$git_method" = "ssh" ]
then
echo "using ssh..."
git clone git@github.com:Komrade/Komrade.git
@ -87,7 +87,7 @@ then
echo "pyenv not installed. install?"
read -p "[Y/n] " pyenv_yn
if [ ! pyenv_yn=="n" ]; then
if [ "$pyenv_yn" = "n" ]; then
echo "Not installing pyenv."
else
export PYENV_ROOT="$HOME/.pyenv"

Loading…
Cancel
Save