Skip to content

Instantly share code, notes, and snippets.

@dfiel
Last active March 11, 2017 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfiel/b72e648865fc1d29765919a983a011da to your computer and use it in GitHub Desktop.
Save dfiel/b72e648865fc1d29765919a983a011da to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo ':: Installing repo key'
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo ':: Adding repo entry'
echo "deb http://repo.ajenti.org/debian main main ubuntu" > /etc/apt/sources.list.d/ajenti.list
echo ':: Updating lists'
apt-get update
echo ':: Installing package'
apt-get install -y ajenti
echo ':: Done! Open https://<address>:8000 in browser'
service ajenti restart
echo ':: Uninstalling Apache2'
apt-get autoremove -y && sudo apt-get remove -y apache2*
echo ':: Installing Ajenti-v'
apt-get install -y ajenti-v ajenti-v-nginx ajenti-v-mysql ajenti-v-php-fpm php5-mysql ajenti-v-mail
service ajenti restart
echo ':: Installing Ajenti FTP'
apt-get install -y ajenti-v-ftp-pureftpd
echo ':: Installing Ajenti Mail'
apt-get install -y ajenti-v-mail
echo ':: Installing POP Support'
apt-get install -y courier-pop
echo ':: Restarting services'
service php5-fpm restart
service nginx restart
service ajenti restart
echo ':: Install Complete!'
read -n 1 -s -p "Press any key to reboot"
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment