From f7416109311b7012ead51134c96c8d15347f343a Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sat, 4 Jan 2020 22:10:37 -0500 Subject: [PATCH] append lokinet.ini --- installers/common.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index dabb864..156b156 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -114,9 +114,20 @@ function display_lokiaddress (){ } function install_complete() { - sudo rm -r $snapp_dir/installers || install_error "Unable to remove installers" + #append /var/lib/lokinet/lokinet.ini + + sed '/[network]/a \ + > keyfile=/var/lib/lokinet/snappkey.private' /var/lib/lokinet/lokinet.ini + #restart Lokinet + + sudo systemctl restart lokinet + + #clean out installer files + + sudo rm -r $snapp_dir/installers || install_error "Unable to remove installers" sudo rm -r /tmp/snapp || install_error "Unable to remove /tmp/snapp folder" - install_log "Installation completed!" + + install_log "Installation completed!" echo -n "Installation complete. Do you wish to launch your SNApp? [y/N]: " read answer