We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a06a90e commit a5c47c3Copy full SHA for a5c47c3
bin/v-add-web-domain-ftp
@@ -56,10 +56,14 @@ if [ ! -z "$FTP_USER" ]; then
56
/usr/sbin/userdel -f $FTP_USER > /dev/null 2>&1
57
fi
58
59
-# Define shell
60
-shell='/sbin/nologin'
61
-if [ -e "/usr/bin/rssh" ]; then
62
- shell='/usr/bin/rssh'
+# Define ftp user shell
+if [ -z "$FTP_SHELL" ]; then
+ shell='/sbin/nologin'
+ if [ -e "/usr/bin/rssh" ]; then
63
+ shell='/usr/bin/rssh'
64
+ fi
65
+else
66
+ shell=$FTP_SHELL
67
68
69
# Define path
0 commit comments