#!/bin/bash echo "nZEDb Installer" echo "----------------------" echo "" echo "Getting the nZEDb app from GitHub" echo "" git clone https://github.com/nZEDb/nZEDb.git cd nZEDb echo "" if type -p composer >/dev/null 2>&1; then composer install else if [ -f "composer.phar" ]; then php composer.phar install else echo "" echo "Getting Composer for you..." curl -sS https://getcomposer.org/installer | php php composer.phar install fi fi echo "" echo "Setting cache directory permissions for you..." sudo chown -R www-data:www-data /var/lib/php/sessions/ chmod 755 ./ chmod -R g+s ./ chmod -R 755 app/libraries chmod -R 775 app/resources chmod -R 775 configuration chmod -R 775 libraries chmod -R 775 resources chmod -R 775 www chmod +x ./zed alias zed='./zed' echo "" echo "" echo "Installation complete." echo "Now run the setup via the web site's /install page." echo "------------------------"