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:
authornachoparker <nacho@ownyourbits.com>2018-06-06 18:11:25 +0300
committernachoparker <nacho@ownyourbits.com>2018-06-06 18:11:47 +0300
commitb78c9e2369df3a716101c5ae6ed0cc9d8018f3a4 (patch)
treea139b2fcd08ede45c721d0e745320fb318106bbb
parent412eee2f980e7ada84208df5de68f203e68eb4f9 (diff)
add ncc command, shortcut of occv0.56.19
-rw-r--r--changelog.md4
-rw-r--r--ncp.sh7
-rwxr-xr-xupdate.sh7
3 files changed, 17 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 341ebdb6..599209e2 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,7 @@
-[v0.56.18](https://github.com/nextcloud/nextcloudpi/commit/caaa4cd) (2018-06-06) NFS: fix dependency with automount
+[v0.56.19](https://github.com/nextcloud/nextcloudpi/commit/f08c238) (2018-06-06) add ncc command, shortcut of occ
+
+[v0.56.18](https://github.com/nextcloud/nextcloudpi/commit/8914348) (2018-06-06) NFS: fix dependency with automount
[v0.56.17](https://github.com/nextcloud/nextcloudpi/commit/b4038ca) (2018-06-04) ncp-web: sanitize the ref parameter
diff --git a/ncp.sh b/ncp.sh
index 1fee5be4..01fdcc14 100644
--- a/ncp.sh
+++ b/ncp.sh
@@ -36,6 +36,13 @@ install()
sed -i '/1\\ \*) do_change_pass ;;/i0\\ *) ncp-config ;;' /usr/bin/raspi-config
}
+ # add the ncc shortcut
+ cat >> /usr/local/bin/ncc <<'EOF'
+#!/bin/bash
+sudo -u www-data php /var/www/nextcloud/occ "$@"
+EOF
+ chmod +x /usr/local/bin/ncc
+
# NCP-WEB
## VIRTUAL HOST
diff --git a/update.sh b/update.sh
index d416584a..81768dbf 100755
--- a/update.sh
+++ b/update.sh
@@ -242,6 +242,13 @@ done
rm -f /etc/systemd/system/rpcbind.service /etc/systemd/system/nfs-common.services
sed -i 's|^ExecStartPre=.*|ExecStartPre=/bin/bash -c "/bin/sleep 30; /usr/sbin/exportfs -r"|' /lib/systemd/system/nfs-server.service
+ # add the ncc shortcut
+ cat >> /usr/local/bin/ncc <<'EOF'
+#!/bin/bash
+sudo -u www-data php /var/www/nextcloud/occ "$@"
+EOF
+ chmod +x /usr/local/bin/ncc
+
} # end - only live updates
exit 0