#!/bin/bash #ManuAdminMod Copyright (C) 2008-2012 Manuel Kress #Installation script Copyright (C) Master of Litle DOWNLOAD="http://www.manuadminmodce.de/filebase/index.php?page=EntryFileDownload&fileID=17&s=a30d77a6898b0767824a25961730b898fbe308b5" echo "ManuAdminmod installation" echo "Want to start [Y/n]?" read yn case $yn in [Nn]* ) echo "Exit Installation..." exit;; [Yy]* ) echo "Intsalling new PHP version" echo `sudo apt-get install php5 php5-cli php5-mysql php5-gd php5-sqlite php5-sockets` echo "ok" echo "newest PHP intsalled" echo "Downloading ManuAdminMod..." echo `wget "$DOWNLOAD"` echo `mv "index.php?page=EntryFileDownload&fileID=17&s=a30d77a6898b0767824a25961730b898fbe308b5" adminmod.zip` echo "Unzip ManuAdminMod..." unzip "adminmod.zip" > /dev/null rm -fr "./TCP-Console" rm -fr "./Docs" rm -f "./adminmod.zip" echo "Which Call of Duty do you have[cod2/cod4/codwaw/codmw2]?" read cod case $cod in cod2) mv "./adminmod/config_cod2 RENAME TO config IF COD2" "./adminmod/config" rm -fr "./adminmod/config_cod4 RENAME TO config IF COD4" rm -fr "./adminmod/config_codmw2 RENAME TO config IF CODMW2" rm -fr "./adminmod/config_codwaw RENAME TO config IF CODWAW";; cod4) mv "./adminmod/config_cod4 RENAME TO config IF COD4" "./adminmod/config" rm -fr "./adminmod/config_cod2 RENAME TO config IF COD2" rm -fr "./adminmod/config_codmw2 RENAME TO config IF CODMW2" rm -fr "./adminmod/config_codwaw RENAME TO config IF CODWAW";; codmw2) mv "./adminmod/config_codmw2 RENAME TO config IF CODMW2" "./adminmod/config" rm -fr "./adminmod/config_cod4 RENAME TO config IF COD4" rm -fr "./adminmod/config_cod2 RENAME TO config IF COD2" rm -fr "./adminmod/config_codwaw RENAME TO config IF CODWAW";; cod4) mv "./adminmod/config_codwaw RENAME TO config IF CODWAW" "./adminmod/config" rm -fr "./adminmod/config_cod4 RENAME TO config IF COD4" rm -fr "./adminmod/config_codmw2 RENAME TO config IF CODMW2" rm -fr "./adminmod/config_cod2 RENAME TO config IF COD2";; *) echo "No Game selected";; esac echo "Want to rename the folder (for security reason)[Y/n]?" read sec case $sec in [Nn]* ) echo "no renaming, now you may have a security problem";; [Yy]* ) echo "Please enter the new name:" read name mv "./adminmod" "./$name";; * ) echo "Please answer yes or no.";; esac echo "Installation finished" echo "Please edit the config.cfg or generate it with: http://www.manuadminmodce.de/config/config.php" ;; * ) echo "Please answer yes or no.";; esac