Array Install File edited for use with Sierra
#!/bin/sh
curr_dir="."
cs_dir="$HOME/array_cs"
if [ $# -eq 1 ]; then
curr_dir=$1
else
echo "use default directory"
fi
#curr_dir=${curr_dir%/*}
#echo "current directory: $curr_dir\n"
#installer -pkg $curr_dir/drivers.mpkg -target /
if [ ! -d "$cs_dir" ];then
mkdir -p "$cs_dir"
fi
chown root "$curr_dir"/ArraySSLVPN.app/Contents/MacOS/ArrayVPNServer
chmod 4755 "$curr_dir"/ArraySSLVPN.app/Contents/MacOS/ArrayVPNServer
/bin/cp -f "$curr_dir"/ArraySSLVPN.app/Contents/MacOS/scpt.dat "$HOME"/array_cs/scpt.dat
touch /var/log/ArraySSLVPN.log
chmod 4777 /var/log/ArraySSLVPN.log
#chmod 666 /var/log/vpnd.log
grep 'ArraySSLVPN' /etc/syslog.conf
if [ $? -eq 0 ]; then
echo "need to modify syslog.conf\n"
sed -i -e '/ArraySSLVPN/d' /etc/syslog.conf
echo "restart syslogd\n"
killall -HUP syslogd
fi
echo "" > /var/log/ArraySSLVPN.log
echo "install finish\n"