Project

General

Profile

« Previous | Next » 

Revision 3b73574b

Added by Jim Pingle over 6 years ago

ssh settings alignment. Fixes #8974

Remove redundant settings stored in the wrong place
Store all ssh settings in the same place
Initialize this array before use

(cherry picked from commit ec439957ce0f70778d89f57eba9553e2afba874a)

View differences:

src/etc/phpshellsessions/enablesshd
19 19
 */
20 20

  
21 21
global $config;
22
echo "Starting enablesshd...";
22
echo "Enabling sshd...";
23 23
require("config.inc");
24 24
echo ".";
25 25
$config = parse_config(true);
26 26
echo ".";
27
$config['system']['enablesshd'] = true;
27
init_config_arr(array('system', 'ssh'));
28
$config['system']['ssh']['enable'] = "enabled";
28 29
echo ".";
29 30
write_config("pfSsh.php enabled sshd");
30
echo "\nEnabling SSHD, please wait...";
31
echo "\nRestarting sshd, please wait...";
31 32
send_event("service reload sshd");
32 33
echo "\n\n";

Also available in: Unified diff