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

ncp-check-updates « bin - github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3f9bf6111aaaa5f1cd04efeffac4eaf7ebb0af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# print message if an update is available

VERFILE=/usr/local/etc/ncp-version 
LATEST=/var/run/.ncp-latest-version

if ncp-test-updates; then
  echo -e "\nNextCloudPi \e[1m$( cat $VERFILE)\e[0m is outdated"
  echo -e "update to \e[1m$( cat $LATEST )\e[0m through 'nextcloudpi-config' or type 'sudo ncp-update'" 
else
  echo -e "\nNextCloudPi \e[1m$( cat $VERFILE)\e[0m is up to date"
fi