From ec1cf32977b59bd14d2ff8b762ea30b4a7df5986 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 28 Dec 2016 08:51:44 +0100 Subject: [PATCH] Add remote installer script (reused from nZEDb) --- Changelog | 2 ++ _install/install.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 _install/install.sh diff --git a/Changelog b/Changelog index 1492c5e52..6fe3b150d 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2016-12-27 DariusIII + * Chg: Add remote installer script (reused from nZEDb) 2016-12-27 DariusIII * Chg: Update composer.lock * Chg: Add Travis-CI build status to README.md diff --git a/_install/install.sh b/_install/install.sh new file mode 100644 index 000000000..045c97809 --- /dev/null +++ b/_install/install.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +echo "NNTmux Installer" +echo "----------------------" +echo "" + +echo "Getting the NNTmux app from GitHub" +echo "" +git clone https://github.com/NNTmux/newznab-tmux.git nntmux +cd nntmux +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 755 app/libraries +chmod -R 777 app/resources +chmod -R 755 libraries +chmod -R 755 resources +chmod -R 777 www +chmod +x ./zed +alias tmux='./tmux' +echo "" + +echo "" +echo "Installation complete." +echo "Now run the setup via the web site's /install page." +echo "------------------------"