Skip to content

Commit 8ca3535

Browse files
committed
added nc-update-nc-apps and nc-update-nc-apps-auto
1 parent 6331ce5 commit 8ca3535

File tree

5 files changed

+110
-2
lines changed

5 files changed

+110
-2
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
3+
# Periodically update all installed Nextcloud Apps
4+
#
5+
# Copyleft 2019 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
6+
# GPL licensed (see end of file) * Use at your own risk!
7+
#
8+
# More at: https://ownyourbits.com
9+
#
10+
11+
cronfile=/etc/cron.weekly/ncp-autoupdate-apps
12+
13+
configure()
14+
{
15+
[[ "$ACTIVE" != "yes" ]] && {
16+
rm -f "$cronfile"
17+
echo "automatic app updates disabled"
18+
return 0
19+
}
20+
21+
cat > "$cronfile" <<'EOF'
22+
#!/bin/bash
23+
ncc app:update --all -n
24+
EOF
25+
chmod 755 "$cronfile"
26+
echo "automatic app updates enabled"
27+
}
28+
29+
install() { :; }
30+
31+
# License
32+
#
33+
# This script is free software; you can redistribute it and/or modify it
34+
# under the terms of the GNU General Public License as published by
35+
# the Free Software Foundation; either version 2 of the License, or
36+
# (at your option) any later version.
37+
#
38+
# This script is distributed in the hope that it will be useful,
39+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
40+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41+
# GNU General Public License for more details.
42+
#
43+
# You should have received a copy of the GNU General Public License
44+
# along with this script; if not, write to the
45+
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
46+
# Boston, MA 02111-1307 USA
47+

bin/ncp/TOOLS/nc-update-nc-apps.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
# Update all installed Nextcloud Apps
4+
#
5+
# Copyleft 2019 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
6+
# GPL licensed (see end of file) * Use at your own risk!
7+
#
8+
# More at: https://ownyourbits.com
9+
#
10+
11+
12+
configure()
13+
{
14+
ncc app:update --all -n
15+
}
16+
17+
install() { :; }
18+
19+
# License
20+
#
21+
# This script is free software; you can redistribute it and/or modify it
22+
# under the terms of the GNU General Public License as published by
23+
# the Free Software Foundation; either version 2 of the License, or
24+
# (at your option) any later version.
25+
#
26+
# This script is distributed in the hope that it will be useful,
27+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
28+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29+
# GNU General Public License for more details.
30+
#
31+
# You should have received a copy of the GNU General Public License
32+
# along with this script; if not, write to the
33+
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
34+
# Boston, MA 02111-1307 USA

changelog.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

2-
[v1.4.11](https://github.com/nextcloud/nextcloudpi/commit/2cd950d) (2019-01-28) update: make letsencrypt update more resiliant (2)
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
33

4-
[v1.4.10](https://github.com/nextcloud/nextcloudpi/commit/55121d4) (2019-01-27) update: make letsencrypt update more resiliant
4+
[v1.4.11](https://github.com/nextcloud/nextcloudpi/commit/6331ce5) (2019-01-28) update: make letsencrypt update more resiliant (2)
5+
6+
[v1.4.10 ](https://github.com/nextcloud/nextcloudpi/commit/55121d4) (2019-01-27) update: make letsencrypt update more resiliant
57

68
[v1.4.9 ](https://github.com/nextcloud/nextcloudpi/commit/9a36ceb) (2019-01-25) letsencrypt: use the latest github version
79

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"id": "nc-update-nc-apps-auto",
3+
"name": "Nc-update-nc-apps-auto",
4+
"title": "nc-update-nc-apps-auto",
5+
"description": "Periodically update all installed Nextcloud Apps",
6+
"info": "",
7+
"infotitle": "",
8+
"params": [
9+
{
10+
"id": "ACTIVE",
11+
"name": "Active",
12+
"value": "no",
13+
"type": "bool"
14+
}
15+
]
16+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"id": "nc-update-nc-apps",
3+
"name": "Nc-update-nc-apps",
4+
"title": "nc-update-nc-apps",
5+
"description": "Update all installed Nextcloud Apps",
6+
"info": "",
7+
"infotitle": "",
8+
"params": []
9+
}

0 commit comments

Comments
 (0)