From f3e4882e78bddf71d3630f27b7d9956d2d9c97f8 Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Mon, 14 Oct 2019 21:50:06 +0200 Subject: [PATCH] updated bootstrap script --- .yadm/bootstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.yadm/bootstrap b/.yadm/bootstrap index e5c4a3d..984e866 100644 --- a/.yadm/bootstrap +++ b/.yadm/bootstrap @@ -55,8 +55,8 @@ printf "\n# Enabling Emacs as user service ##################################### systemctl --user enable --now emacs # echo "Enable ssh server?" -read --prompt "echo 'Do you want to activate the ssh server? (yes/no): ' " -l sshdserver -if ! test (echo "yes" | sed -e "s/^.*$sshdserver//I") +read --prompt "echo 'Do you want to activate the ssh server? (Y/n): ' " -l sshdserver +if test $sshdserver = 'y' || test $sshdserver = "Y" || test $sshdserver = '' printf "\n# Enabling ssh server #########################################################\n" sudo systemctl enable --now sshd end