Only download if the file doesn't already exist
This commit is contained in:
parent
20b0acd710
commit
950825f1cd
|
@ -151,15 +151,15 @@ function argument_checks {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! $DOMAIN_NAME ]; then
|
if [ ! $DOMAIN_NAME ]; then
|
||||||
show_help
|
show_help
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
if [ ! $MY_USERNAME ]; then
|
if [ ! $MY_USERNAME ]; then
|
||||||
show_help
|
show_help
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
if [ ! $FREEDNS_SUBDOMAIN_CODE ]; then
|
if [ ! $FREEDNS_SUBDOMAIN_CODE ]; then
|
||||||
show_help
|
show_help
|
||||||
exit 4
|
exit 4
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -1597,7 +1597,9 @@ function install_owncloud {
|
||||||
|
|
||||||
# download owncloud
|
# download owncloud
|
||||||
cd $INSTALL_DIR
|
cd $INSTALL_DIR
|
||||||
wget $OWNCLOUD_DOWNLOAD
|
if [ ! -f $INSTALL_DIR/$OWNCLOUD_ARCHIVE ]; then
|
||||||
|
wget $OWNCLOUD_DOWNLOAD
|
||||||
|
fi
|
||||||
if [ ! -f $INSTALL_DIR/$OWNCLOUD_ARCHIVE ]; then
|
if [ ! -f $INSTALL_DIR/$OWNCLOUD_ARCHIVE ]; then
|
||||||
echo 'Owncloud could not be downloaded. Check that it exists at '
|
echo 'Owncloud could not be downloaded. Check that it exists at '
|
||||||
echo $OWNCLOUD_DOWNLOAD
|
echo $OWNCLOUD_DOWNLOAD
|
||||||
|
|
Loading…
Reference in New Issue