mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
only check if the file actually is there (#2253)
This commit is contained in:
parent
d5b2af0b03
commit
e6d26168bf
@ -195,10 +195,13 @@ then
|
||||
fi
|
||||
else
|
||||
# Only update if it's older than 60 days (60 seconds * 60 minutes * 24 hours * 60 days)
|
||||
if [ "$(stat --format=%Y "$SCRIPTS"/nextcloud.sh)" -le "$(( $(date +%s) - ((60*60*24*60)) ))" ]
|
||||
if [ -f "$SCRIPTS"/nextcloud.sh ]
|
||||
then
|
||||
download_script STATIC nextcloud
|
||||
chown "$CURRUSR":"$CURRUSR" "$SCRIPTS"/nextcloud.sh
|
||||
if [ "$(stat --format=%Y "$SCRIPTS"/nextcloud.sh)" -le "$(( $(date +%s) - ((60*60*24*60)) ))" ]
|
||||
then
|
||||
download_script STATIC nextcloud
|
||||
chown "$CURRUSR":"$CURRUSR" "$SCRIPTS"/nextcloud.sh
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user