Skip to content

Commit

Permalink
fixes from testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 8, 2018
1 parent e9a8599 commit 85d7521
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 39 deletions.
39 changes: 1 addition & 38 deletions src/clients/ftp-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def main
"help" => _(
"Start FTP daemon via systemd socket."
)
}
},
"manual" => {
# TRANSLATORS: CommandLine help
"help" => _(
Expand All @@ -249,13 +249,6 @@ def main
"Directory for anonymous users"
)
},
"set_authen_dir" => {
"type" => "string",
# TRANSLATORS: CommandLine help
"help" => _(
"Directory for authenticated users"
)
},
"set_min_port" => {
"type" => "integer",
# TRANSLATORS: CommandLine help
Expand Down Expand Up @@ -354,7 +347,6 @@ def main
"chroot" => ["enable", "disable"],
"umask" => ["set_umask"],
"anon_dir" => ["set_anon_dir"],
"authen_dir" => ["set_authen_dir"],
"port_range" => ["set_min_port", "set_max_port"],
"idle_time" => ["set_idle_time"],
"max_clients_ip" => ["set_max_clients"],
Expand Down Expand Up @@ -724,35 +716,6 @@ def FTPdCMDAnonDir(options)
nil
end

def FTPdCMDAuthenDir(options)
options = deep_copy(options)
CommandLine.Print(String.UnderlinedHeader(_("Authenticated users:"), 0))
CommandLine.Print("")
if Builtins.size(options) == 1
if Ops.get(options, "set_authen_dir") != nil
value = Ops.get_string(options, "set_authen_dir")
if value != nil
CommandLine.PrintNoCR(_("Authenticated directory:"))
CommandLine.Print(value)
CommandLine.Print("")
Ops.set(FtpServer.EDIT_SETTINGS, "FtpDirLocal", value)
else
CommandLine.Error(_("Option is empty."))
CommandLine.Print(
_("Example of correct input set_authen_dir=/srv/ftp")
)
CommandLine.Print("")
end
end
else
# TRANSLATORS: CommandLine error message
CommandLine.Error(_("Only one parameter is allowed."))
CommandLine.Print("")
end
nil
end
def FTPdCMDPassPorts(options)
options = deep_copy(options)
CommandLine.Print(String.UnderlinedHeader(_("Port range:"), 0))
Expand Down
1 change: 0 additions & 1 deletion src/include/ftp-server/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def initialize_ftp_server_dialogs(include_target)
@wid_handling_vsftpd = {
"StartMode" => CWMServiceStart.CreateAutoStartWidget(StartMode()),
"StartStop" => CWMServiceStart.CreateStartStopWidget(StartStop()),
"RBVsPureFTPd" => RBVsftpdPureftpd(),
"StartStopRestart" => StartStopRestart(),
"Banner" => Banner(),
"ChrootEnable" => ChrootEnable(),
Expand Down
2 changes: 2 additions & 0 deletions src/modules/FtpServer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require "yast"

require "y2firewall/firewalld"

module Yast
# Configure vsftpd: https://security.appspot.com/vsftpd.html
class FtpServerClass < Module
Expand Down

0 comments on commit 85d7521

Please sign in to comment.