X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=blobdiff_plain;f=ssh-setpass%2Finstall.sh;h=67ef3b2ca70f7202fc6319f26a4336763abec7b2;hp=6944512177fd4d73e93609a4fa89c601ff15ae32;hb=91512157ab426c87e0a82b594620e90e324b23a3;hpb=b1d3b44f966332434d8ec49b2a0df569e9bf8c16 diff --git a/ssh-setpass/install.sh b/ssh-setpass/install.sh deleted file mode 120000 index 6944512..0000000 --- a/ssh-setpass/install.sh +++ /dev/null @@ -1 +0,0 @@ -../ssh-utils/ssh-setpass.sh \ No newline at end of file diff --git a/ssh-setpass/install.sh b/ssh-setpass/install.sh new file mode 100644 index 0000000..67ef3b2 --- /dev/null +++ b/ssh-setpass/install.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -e +set -u + +function __install_ssh_setpass() { + my_cmd="ssh-setpass" + + rm -f "$HOME/.local/bin/${my_cmd}" + + webi_download \ + "$WEBI_HOST/packages/${my_cmd}/${my_cmd}.sh" \ + "$HOME/.local/bin/${my_cmd}" + + chmod a+x "$HOME/.local/bin/${my_cmd}" + + # run the command + echo '' + echo 'Set passphrase for ~/.ssh/id_rsa?' + "$HOME/.local/bin/${my_cmd}" +} + +__install_ssh_setpass