Skip to content

Commit

Permalink
progress on install-nextcloud.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
VectorCell committed Aug 6, 2020
1 parent 86e559e commit 82544b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions install-nextcloud.sh
Expand Up @@ -49,17 +49,15 @@ fi

NEXTCLOUD_URL=https://download.nextcloud.com/server/releases/nextcloud-19.0.1.tar.bz2
NEXTCLOUD_ARCHIVE=/home/$USER/Programs/$(echo $NEXTCLOUD_URL | rev | tr '/' ' ' | awk '{print $1}' | rev)
echo
echo "checking for $NEXTCLOUD_ARCHIVE"
if [ ! -e $NEXTCLOUD_ARCHIVE ]; then
wget -O $NEXTCLOUD_ARCHIVE $NEXTCLOUD_URL
fi


echo "stopping here"
exit 0

APACHE_DOCUMENT_ROOT=$(grep -i 'DocumentRoot' /etc/apache2/sites-available/000-default.conf | awk '{print $2}')

echo
echo "extracting $NEXTCLOUD_ARCHIVE to $APACHE_DOCUMENT_ROOT"
sudo tar -xvf $NEXTCLOUD_ARCHIVE -C $APACHE_DOCUMENT_ROOT
echo "extracted $NEXTCLOUD_ARCHIVE to $APACHE_DOCUMENT_ROOT"

0 comments on commit 82544b5

Please sign in to comment.