#!/bin/bash
# Debian-IPC - Setupscript by SEG74
clear
TITLE="IPC Installation (Update) / V11.2 $(date +"%d.%m.%Y %H:%M")"
URL="http://ipc.pebkac.at/ipc"
PAK="ipc-112.tgz"
DIR=$PWD
if test -f "$0.1"; then
echo "$TITLE"
echo "==============================================================================="
echo ""
echo "Alte Setupscripts entfernt, starte Download und Setup erneut"
echo ""
echo "-------------------------------------------------------------------------------"
echo ""
rm $0*
exit 1
fi
echo "$TITLE"
echo "==============================================================================="
echo ""
echo " IPC-Tools EMUs-Autostart, Putty, SCP, Smargo, Firmware"
echo " IPC-Website InfoPHP, Editor, htaccess, SSH-Javaclient, Sysinfo"
echo " IPC-Scripts Watchdog- und Backupscripts"
echo ""
echo " CCcam Version einstellbar"
echo " CCcam-Cronjobs Watchdog, Load Newconfig, Backups"
echo " CCcam-Logfilter Illegal-User, Bad-Commands, Crashlog, Log-Rotation"
echo " CCcam-Console Infos, CCcam-Konfiguration"
echo ""
echo " OScam Version einstellbar"
echo " NewCS 1.67 RC1"
echo ""
echo "-------------------------------------------------------------------------------"
echo "Bei Erstinstallation muessen die benoetigten Pakete mit installiert werden !"
echo "-------------------------------------------------------------------------------"
echo ""
echo -en "\033[0;33m[P]akete und IPC installieren | IPC [I]nstallieren | []Beenden: \033[0m"
read key
case $key in
[Ii])
echo ""
echo "-------------------------------------------------------------------------------"
echo ""
;;
[Pp])
clear
echo "$TITLE"
echo "==============================================================================="
echo "Installiere von IPC benoetigte Pakete, bitte warten .."
echo "-------------------------------------------------------------------------------"
echo ""
apt-get update
apt-get install -y openssh-server nano less locales dialog console-tools console-data console-common rsyslog logrotate
apt-get install -y apache2 libapache2-mod-php5 php5-cli php5-common php5-cgi
apt-get install -y tofrodos locate htop lm-sensors ncftp sendEmail libpcsclite1 nfs-common portmap
echo "-------------------------------------------------------------------------------"
echo "Paketinstallation abgeschlossen, bitte warten .."
echo "-------------------------------------------------------------------------------"
sleep 3
;;
*)
echo ""
echo "IPC Installation vorzeitig beendet"
echo "-------------------------------------------------------------------------------"
echo ""
exit 0
;;
esac
#Pruefe Argumente
[ "$1" = "32" ] && SYSBIT="32"
[ "$1" = "64" ] && SYSBIT="64"
#Pruefe Apache
if [ ! -d "/etc/apache2" ] ; then
echo -e "\033[1;31mKein Apache installiert, Setup wird beendet !\033[0m"
echo "Siehe Systemvorraussetzungen in der Setupanleitung."
exit 1
fi
...