diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-28 16:15:07 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-28 16:17:53 -0400 |
commit | 8fe7e3fcd28bd1ba0ca6f9a2fc9c3863217fe337 (patch) | |
tree | cd9496e1ebab81969314c694c42c43baa93ce2a6 /etc | |
parent | df61b7b4addf5fd4474880bd8f4a28e95642a6e1 (diff) | |
download | pfsense-8fe7e3fcd28bd1ba0ca6f9a2fc9c3863217fe337.zip pfsense-8fe7e3fcd28bd1ba0ca6f9a2fc9c3863217fe337.tar.gz |
Require globals.inc and use correct directory name sshd, not ssh
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/sshd | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -28,6 +28,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + require_once("globals.inc"); require_once("config.inc"); require_once("notices.inc"); @@ -47,9 +48,9 @@ } /* restore ssh data for nanobsd platform */ - if($g['platform'] == "nanobsd" and file_exists("/conf/ssh/ssh_host_key")) { - if(!file_exists("/etc/ssh/sshd_host_key.pub")) { - cp("/conf/ssh/* /etc/ssh/"); + if($g['platform'] == "nanobsd" and file_exists("/conf/sshd/ssh_host_key")) { + if(!file_exists("/etc/sshd/sshd_host_key.pub")) { + cp("/conf/sshd/* /etc/ssh/"); } } |