Only download if the file doesn't already exist

This commit is contained in:
Bob Mottram 2014-09-24 22:17:44 +01:00
parent 20b0acd710
commit 950825f1cd
1 changed files with 6 additions and 4 deletions

View File

@ -1597,7 +1597,9 @@ function install_owncloud {
# download owncloud
cd $INSTALL_DIR
if [ ! -f $INSTALL_DIR/$OWNCLOUD_ARCHIVE ]; then
wget $OWNCLOUD_DOWNLOAD
fi
if [ ! -f $INSTALL_DIR/$OWNCLOUD_ARCHIVE ]; then
echo 'Owncloud could not be downloaded. Check that it exists at '
echo $OWNCLOUD_DOWNLOAD