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

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'updates/1.45.0.sh')
-rw-r--r--updates/1.45.0.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/updates/1.45.0.sh b/updates/1.45.0.sh
index 16778309..6829df17 100644
--- a/updates/1.45.0.sh
+++ b/updates/1.45.0.sh
@@ -11,6 +11,14 @@ source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
# this update brings a version bump for ncp-previewgenerator
ncc upgrade
+# update ncc
+cat > /usr/local/bin/ncc <<'EOF'
+#!/bin/bash
+[[ ${EUID} -eq 0 ]] && SUDO="sudo -E -u www-data"
+${SUDO} php /var/www/nextcloud/occ "$@"
+EOF
+chmod +x /usr/local/bin/ncc
+
# docker images only
[[ -f /.docker-image ]] && {
: