Skip to content

Commit b072620

Browse files
committed
fix version, provisioning and more
1 parent 5d9c1b1 commit b072620

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

bin/ncp-provisioning.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ EOF
5050
## nc.limits.sh (auto)adjustments: number of threads, memory limits...
5151

5252
source /usr/local/etc/library.sh
53-
run_app nc-limits
53+
configure_app nc-limits && run_app nc-limits
5454

5555
## Check for interrupted upgrades and rollback
5656
BKP="$( ls -1t /var/www/nextcloud-bkp_*.tar.gz 2>/dev/null | head -1 )"

bin/ncp-update

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
echo "No internet connectivity"
1717
exit 1
1818
}
19-
[[ -f /.ncp-image ]] || cd "$TMPDIR" # update locally during build
19+
cd "$TMPDIR" # update locally during build
2020

2121
echo -e "Performing updates"
2222
./update.sh && {

bin/ncp/CONFIG/nc-limits.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# System limit configurator for NextCloudPi
3+
# System limits configuration for NextCloudPi
44
#
55
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
66
# GPL licensed (see end of file) * Use at your own risk!

etc/ncp-config.d/letsencrypt.cfg

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"name": "Let's Encrypt, Automatic signed SSL certificates",
44
"title": "letsencrypt",
55
"description": "Automatic signed SSL certificates. Let’s Encrypt is a free, automated, and open Certificate Authority.",
6-
"info": "Internet access is required for this configuration to complete\n
7-
Both ports 80 and 443 need to be accessible from the internet\n \n
8-
Your certificate will be automatically renewed every month",
6+
"info": "Internet access is required for this configuration to complete\nBoth ports 80 and 443 need to be accessible from the internet\n\nYour certificate will be automatically renewed every month",
97
"infotitle": "Warning",
108
"params": [
119
{

etc/ncp-config.d/nc-limits.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"id": "MEMORYLIMIT",
16-
"name": "Memory limit,
16+
"name": "Memory limit",
1717
"value": "0"
1818
},
1919
{

etc/ncp-config.d/spDYN.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"id": "DOMAIN",
17-
"name": "Domain,
17+
"name": "Domain",
1818
"value": "mycloud.spdns.de"
1919
},
2020
{

ncp.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,11 @@ EOF
178178
chown root:www-data /var/run/.ncp-latest-version
179179
chmod g+w /var/run/.ncp-latest-version
180180

181-
# update to latest version from github as part of the build process
182-
bin/ncp-update $BRANCH
181+
# Install all ncp-apps
182+
./update.sh || exit 1
183+
local VER=$( git describe --always --tags | grep -oP "v\d+\.\d+\.\d+" )
184+
grep -qP "v\d+\.\d+\.\d+" <<< "$VER" || { echo "Invalid format"; exit 1; }
185+
echo "$VER" > /usr/local/etc/ncp-version
183186

184187
# LIMIT LOG SIZE
185188
grep -q maxsize /etc/logrotate.d/apache2 || sed -i /weekly/amaxsize2M /etc/logrotate.d/apache2

0 commit comments

Comments
 (0)