Re: Add support of SendEnv
Ok, it works.
Sorry, but I don't understand, how my script can getsftp-server
as its argument??
sftp-server
to the shell as an argument.
I was asking, why do you start/bin/bash
in yourmain.sh
, if "mode" is "SFTP".
/bin/bash
instead of my whiptail script.
Anyway, yourmain.sh
should getsftp-server
as its argument. You can use that to detect the "mode".
sftp-server
as its argument??
/bin/bash
in your main.sh
, if "mode" is "SFTP".
main.sh
should get sftp-server
as its argument. You can use that to detect the "mode".
foo:x:1001:1001:,,,:/home/foo:/home/foo/main.sh
sftp-server
, not bash.
...
foo:x:1001:1001:,,,:/home/foo:/home/foo/main.sh
...
...
if [["$ {MODE}" == "SFCP"]]
Then
/bin/bash
fi
...