argument('configuration'); $source = base_path().self::RESOURCES_JAIL_DIRECTORY.'/'.$configuration.'.conf'; // configuration not found if (!file_exists($source)) { $this->error('fail2ban...configuration not found'); exit(); } $destination = self::FAIL2BAN_JAIL_DIRECTORY.'/'.$configuration.'.conf'; copy($source, $destination); $this->info('fail2ban...'.$configuration.' enabled'); exec('service fail2ban restart'); } }