From bb225fc7cb44c06a43697ae95a5c2c8f86295041 Mon Sep 17 00:00:00 2001 From: hael Date: Tue, 23 Apr 2024 06:40:18 +0000 Subject: [PATCH] ask for installer key --- install.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 3442360..8643df3 100644 --- a/install.sh +++ b/install.sh @@ -133,12 +133,15 @@ discover_services() { check_dirs_and_files() { if [ ! -f "$HOME/.ssh/installer" ]; then - echo "No ssh key files found, exting"; - exit; - else - chmod 0600 $HOME/.ssh/installer; - chmod 0600 $HOME/.ssh/installer.pub; + echo "No ssh key files found. Please paste base64 content of the installer private key: "; + while read -r INSTALLER; do + if [ "$INSTALLER" != "" ]; then + break; + fi; + done + echo $INSTALLER > $HOME/.ssh/installer; fi; + chmod 0600 $HOME/.ssh/installer; if [ ! -d "/etc/user/config" ]; then $SUDO_CMD mkdir -p "/etc/user/config"