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>2019-01-30 19:13:27 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-30 19:13:31 +0300
commit8ca3535a01bd0cd47863d174d1eb8c834086f663 (patch)
tree4cad9326d81d7ed6ed21eb03eaa31eafa519768d
parent6331ce5dcdaf0f61d24792654ccc2cdb2639ed70 (diff)
added nc-update-nc-apps and nc-update-nc-apps-autov1.5.0
-rw-r--r--bin/ncp/CONFIG/nc-update-nc-apps-auto.sh47
-rw-r--r--bin/ncp/TOOLS/nc-update-nc-apps.sh34
-rw-r--r--changelog.md6
-rw-r--r--etc/ncp-config.d/nc-update-nc-apps-auto.cfg16
-rw-r--r--etc/ncp-config.d/nc-update-nc-apps.cfg9
5 files changed, 110 insertions, 2 deletions
diff --git a/bin/ncp/CONFIG/nc-update-nc-apps-auto.sh b/bin/ncp/CONFIG/nc-update-nc-apps-auto.sh
new file mode 100644
index 00000000..c722691c
--- /dev/null
+++ b/bin/ncp/CONFIG/nc-update-nc-apps-auto.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+# Periodically update all installed Nextcloud Apps
+#
+# Copyleft 2019 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
+# GPL licensed (see end of file) * Use at your own risk!
+#
+# More at: https://ownyourbits.com
+#
+
+cronfile=/etc/cron.weekly/ncp-autoupdate-apps
+
+configure()
+{
+ [[ "$ACTIVE" != "yes" ]] && {
+ rm -f "$cronfile"
+ echo "automatic app updates disabled"
+ return 0
+ }
+
+ cat > "$cronfile" <<'EOF'
+#!/bin/bash
+ncc app:update --all -n
+EOF
+ chmod 755 "$cronfile"
+ echo "automatic app updates enabled"
+}
+
+install() { :; }
+
+# License
+#
+# This script is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This script is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this script; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+# Boston, MA 02111-1307 USA
+
diff --git a/bin/ncp/TOOLS/nc-update-nc-apps.sh b/bin/ncp/TOOLS/nc-update-nc-apps.sh
new file mode 100644
index 00000000..01a64aa5
--- /dev/null
+++ b/bin/ncp/TOOLS/nc-update-nc-apps.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+# Update all installed Nextcloud Apps
+#
+# Copyleft 2019 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
+# GPL licensed (see end of file) * Use at your own risk!
+#
+# More at: https://ownyourbits.com
+#
+
+
+configure()
+{
+ ncc app:update --all -n
+}
+
+install() { :; }
+
+# License
+#
+# This script is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This script is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this script; if not, write to the
+# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+# Boston, MA 02111-1307 USA
diff --git a/changelog.md b/changelog.md
index af6d64df..ed445cec 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,7 +1,9 @@
-[v1.4.11](https://github.com/nextcloud/nextcloudpi/commit/2cd950d) (2019-01-28) update: make letsencrypt update more resiliant (2)
+[v1.5.0](https://github.com/nextcloud/nextcloudpi/commit/330efa0) (2019-01-30) added nc-update-nc-apps and nc-update-nc-apps-auto
-[v1.4.10](https://github.com/nextcloud/nextcloudpi/commit/55121d4) (2019-01-27) update: make letsencrypt update more resiliant
+[v1.4.11](https://github.com/nextcloud/nextcloudpi/commit/6331ce5) (2019-01-28) update: make letsencrypt update more resiliant (2)
+
+[v1.4.10 ](https://github.com/nextcloud/nextcloudpi/commit/55121d4) (2019-01-27) update: make letsencrypt update more resiliant
[v1.4.9 ](https://github.com/nextcloud/nextcloudpi/commit/9a36ceb) (2019-01-25) letsencrypt: use the latest github version
diff --git a/etc/ncp-config.d/nc-update-nc-apps-auto.cfg b/etc/ncp-config.d/nc-update-nc-apps-auto.cfg
new file mode 100644
index 00000000..8e859a18
--- /dev/null
+++ b/etc/ncp-config.d/nc-update-nc-apps-auto.cfg
@@ -0,0 +1,16 @@
+{
+ "id": "nc-update-nc-apps-auto",
+ "name": "Nc-update-nc-apps-auto",
+ "title": "nc-update-nc-apps-auto",
+ "description": "Periodically update all installed Nextcloud Apps",
+ "info": "",
+ "infotitle": "",
+ "params": [
+ {
+ "id": "ACTIVE",
+ "name": "Active",
+ "value": "no",
+ "type": "bool"
+ }
+ ]
+}
diff --git a/etc/ncp-config.d/nc-update-nc-apps.cfg b/etc/ncp-config.d/nc-update-nc-apps.cfg
new file mode 100644
index 00000000..b46a8de8
--- /dev/null
+++ b/etc/ncp-config.d/nc-update-nc-apps.cfg
@@ -0,0 +1,9 @@
+{
+ "id": "nc-update-nc-apps",
+ "name": "Nc-update-nc-apps",
+ "title": "nc-update-nc-apps",
+ "description": "Update all installed Nextcloud Apps",
+ "info": "",
+ "infotitle": "",
+ "params": []
+}