Created
January 4, 2016 19:02
-
-
Save rickyhewitt/d16a89d9268df9309204 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Install/Uninstall Froxlor for RPi/Raspbian | |
# | |
# http://rasptorial.com/server/froxlor-webserver | |
# Courier screen select 'no' to web directories. | |
# Postfix screen select 'internet site'. 'mail name' should be the server's domain. | |
# Proftpd screen, select 'standalone'. | |
# MySQL screen, enter a password. | |
# | |
# This script requires root to function. | |
# Original scripts/instructions from rasptorial.com | |
# Modified script by <[email protected]> | |
case $1 in | |
"--uninstall") | |
echo "Uninstalling..." | |
rm /etc/apt/sources.list.d/froxlor.list | |
apt-get purge froxlor | |
apt-get autoremove | |
;; | |
*) | |
echo "Installing..." | |
apt-key adv --keyserver pool.sks-keyservers.net --recv-key FD88018B6F2D5390D051343FF6B4A8704F9E9BBC | |
apt-key add /root/.gnupg/pubring.gpg | |
echo 'deb http://debian.froxlor.org wheezy main' > /etc/apt/sources.list.d/froxlor.list | |
apt-get update && apt-get -y upgrade | |
apt-get install -y froxlor | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment