mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
16 lines
499 B
Perl
Executable File
16 lines
499 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# save_sync.cgi
|
|
# Save options for the automatic setting up of SSH for new users
|
|
|
|
require './sshd-lib.pl';
|
|
&ReadParse();
|
|
&lock_file("$module_config_directory/config");
|
|
$config{'sync_create'} = $in{'create'};
|
|
$config{'sync_auth'} = $in{'auth'};
|
|
$config{'sync_pass'} = $in{'pass'};
|
|
$config{'sync_type'} = $in{'type'};
|
|
#$config{'sync_gnupg'} = $in{'gnupg'};
|
|
&write_file("$module_config_directory/config", \%config);
|
|
&unlock_file("$module_config_directory/config");
|
|
&redirect("");
|