-
alexflex25
Guest
/bin/bash in your main.sh, if "mode" is "SFTP". Advertisement
Advertisement
... foo:x:1001:1001:,,,:/home/foo:/home/foo/main.sh ...
...
if [["$ {MODE}" == "SFCP"]]
Then
/bin/bash
fi
...sftp-server, not bash.
foo:x:1001:1001:,,,:/home/foo:/home/foo/main.sh
Advertisement
/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".
I was asking, why do you start/bin/bashin yourmain.sh, if "mode" is "SFTP".
/bin/bash instead of my whiptail script.
Anyway, yourmain.shshould getsftp-serveras its argument. You can use that to detect the "mode".
sftp-server as its argument??
The SSH server should passSorry, but I don't understand, how my script can getsftp-serveras its argument??
sftp-server to the shell as an argument.
Advertisement
You can post new topics in this forum