X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=blobdiff_plain;f=ssh-adduser%2Finstall.sh;fp=ssh-adduser%2Finstall.sh;h=0673917193245832a453f909279d980c4adf79fb;hp=a4f9a4634131cfc1798d2703d0ebdc0e9d05d946;hb=91512157ab426c87e0a82b594620e90e324b23a3;hpb=b1d3b44f966332434d8ec49b2a0df569e9bf8c16 diff --git a/ssh-adduser/install.sh b/ssh-adduser/install.sh deleted file mode 120000 index a4f9a46..0000000 --- a/ssh-adduser/install.sh +++ /dev/null @@ -1 +0,0 @@ -../ssh-utils/ssh-adduser.sh \ No newline at end of file diff --git a/ssh-adduser/install.sh b/ssh-adduser/install.sh new file mode 100644 index 0000000..0673917 --- /dev/null +++ b/ssh-adduser/install.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -e +set -u + +function __install_ssh_adduser() { + my_cmd="ssh-adduser" + + 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 + "$HOME/.local/bin/${my_cmd}" +} + +__install_ssh_adduser