#!/bin/sh
# Install ConfigServer Security & Firewall (CSF)   (c) 2015 SolidNetwork, Inc.
# ----------------------------------------------------------------------------
# This shell script is a wrapper script to install ConfigServer Security and
# firewal on linux based systems.
#
#   $ curl https://netsec.netops.me/linux/csf | sh
#
# @author       Adam Brenner   <adam@netops.me>
# @version      1.0
# @date         07/2015

REQUEST='curl -s https://netsec.netops.me/_source/linux/csf/run'
DEFAULT_ARG='--install'

if [ -f /bin/bash ] ; then
    $REQUEST | /bin/bash -s -- $DEFAULT_ARG
elif [ -f /usr/bin/bash ] ; then
    $REQUEST | /usr/bin/bash -s -- $DEFAULT_ARG
else
    echo 'Could not find a working bash interpreter'
fi
