Redmine #5613 avoid Reset to Factory Defaults PHP warnings
Redmine #5613 avoid Reset to Factory Defaults PHP warnings

On Reset to Factory Defaults there are some warnings given when unlink_if_exists() tries to unlink() directories in /conf - /conf/backup and /conf/sshd.
unlink does not work on directories.
This PR avoids the PHP warnings by not trying to remove the directories inside /conf.

As has been the case before this PR, the following things are thus left on the system after Reset to Factory Defaults:
/conf/backup - old config backups, which contain configs of the previous system.
/conf/sshd - old ssh keys.

For testing, this is handy. But for real "reset" should these be deleted?
In addition to this PR, should there be code to delete everything in /conf/backup and/or /conf/sshd?
ptorsten/pfsense,jxmx/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,brunostein/pfsense,dennypage/pfsense,NOYB/pfsense,ptorsten/pfsense,pfsense/pfsense,NewEraCracker/pfsense,ch1c4um/pfsense,brunostein/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,ch1c4um/pfsense,phil-davis/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,dennypage/pfsense,NewEraCracker/pfsense,ch1c4um/pfsense,NOYB/pfsense,pfsense/pfsense,pfsense/pfsense,pfsense/pfsense,BlackstarGroup/pfsense,jxmx/pfsense,phil-davis/pfsense,dennypage/pfsense,BlackstarGroup/pfsense,jxmx/pfsense,dennypage/pfsense,brunostein/pfsense,NOYB/pfsense