Welcome to mirror list, hosted at ThFree Co, Russian Federation.

1.37.0.sh « updates - github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f8271b49fcd5c2d8d4d59fabda5285040337d18d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

set -e

## BACKWARD FIXES ( for older images )

source /usr/local/etc/library.sh # sets NCVER PHPVER RELEASE

# all images

## fix raspbian origin
is_active_app unattended-upgrades && run_app unattended-upgrades

## reduce cron interval to 5 minutes
crontab_tmp=$(mktemp -u -t crontab-www.XXXXXX)
echo "*/5  *  *  *  * php -f /var/www/nextcloud/cron.php" > "${crontab_tmp}"
crontab -u www-data "${crontab_tmp}"
rm "${crontab_tmp}"


# docker images only
[[ -f /.docker-image ]] && {
  :
}

# for non docker images
[[ ! -f /.docker-image ]] && {
  :
}

exit 0