mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
wizard: fix letsencrypt empty email
Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
parent
5a16d57cf5
commit
20bd14fe7b
12
bin/ncp-diag
12
bin/ncp-diag
@ -64,11 +64,13 @@ echo "internet check|$( ping -W 2 -w 1 -q github.com &>/dev/null && echo ok || e
|
||||
|
||||
function is_port_open()
|
||||
{
|
||||
PORT=$1
|
||||
tmp_file=$(mktemp)
|
||||
v=$(wget -T2 -t1 -q --keep-session-cookies --save-cookies $tmp_file https://portchecker.co -O - | grep -oP "_csrf\" value=\"\K.*\"")
|
||||
wget -T2 -t1 -q --load-cookies $tmp_file https://portchecker.co --post-data "port=$PORT&_csrf=${v::-1}" -O - \
|
||||
| grep -q '<span class="green">open</span>' && { echo "open"; return 1; }
|
||||
local PORT=$1
|
||||
local tmp_file=$(mktemp)
|
||||
local v=$(wget -T2 -t1 -q --keep-session-cookies --save-cookies $tmp_file https://portchecker.co -O - | grep -oP "_csrf\" value=\"\K.*\"")
|
||||
if [[ "$v" != "" ]]; then
|
||||
wget -T2 -t1 -q --load-cookies $tmp_file https://portchecker.co --post-data "port=$PORT&_csrf=${v::-1}" -O - \
|
||||
| grep -q '<span class="green">open</span>' && { echo "open"; return 1; }
|
||||
fi
|
||||
echo "closed"
|
||||
rm $tmp_file
|
||||
}
|
||||
|
||||
@ -62,7 +62,7 @@ configure()
|
||||
domain_string+=",${domain}"
|
||||
}
|
||||
done
|
||||
$letsencrypt certonly -n --force-renew --no-self-upgrade --webroot -w $ncdir --hsts --agree-tos -m $EMAIL -d $domain_string && {
|
||||
"${letsencrypt}" certonly -n --force-renew --no-self-upgrade --webroot -w "${ncdir}" --hsts --agree-tos -m "${EMAIL}" -d "${domain_string}" && {
|
||||
|
||||
# Set up auto-renewal
|
||||
cat > /etc/cron.weekly/letsencrypt-ncp <<EOF
|
||||
|
||||
@ -37,7 +37,7 @@ install()
|
||||
### END INIT INFO
|
||||
EOF
|
||||
|
||||
cat debian.noip2.sh >> /etc/init.d/noip2
|
||||
cat debian.noip2.sh >> /etc/init.d/noip2
|
||||
|
||||
chmod +x /etc/init.d/noip2
|
||||
cd -
|
||||
|
||||
@ -1,11 +1,7 @@
|
||||
|
||||
[v1.34.1](https://github.com/nextcloud/nextcloudpi/commit/37c2e4f) (2021-01-01) unattended-upgrades: fix raspbian origin
|
||||
[v1.33.2](https://github.com/nextcloud/nextcloudpi/commit/a975b0c) (2021-01-17) wizard: fix letsencrypt empty email
|
||||
|
||||
[v1.34.0](https://github.com/nextcloud/nextcloudpi/commit/ec428a2) (2021-01-01) upgrade to NC20.0.4
|
||||
|
||||
[v1.33.2 ](https://github.com/nextcloud/nextcloudpi/commit/82d00c8) (2021-01-01) ncp-config: fix empty values
|
||||
|
||||
[v1.33.1 ](https://github.com/nextcloud/nextcloudpi/commit/42fd597) (2020-12-12) nc-update-nc: improve error messages
|
||||
[v1.33.1](https://github.com/nextcloud/nextcloudpi/commit/42fd597) (2020-12-12) nc-update-nc: improve error messages
|
||||
|
||||
[v1.33.0](https://github.com/nextcloud/nextcloudpi/commit/ffd0b44) (2020-12-10) upgrade to NC20.0.3
|
||||
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
"id": "TIME",
|
||||
"name": "Time",
|
||||
"value": "30",
|
||||
"default": "30",
|
||||
"suggest": "30"
|
||||
}
|
||||
]
|
||||
|
||||
@ -172,7 +172,7 @@ HTML
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Configure No-IP -->
|
||||
<!-- Configure No-IP -->
|
||||
<div class="ncp-hidden" id="noip">
|
||||
<div class="buttons-area">
|
||||
<div class="ddns-form">
|
||||
@ -184,14 +184,14 @@ HTML
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="noip-password">Password</label></td>
|
||||
<td><input type="text" id="noip-password" placeholder="secret"></td>
|
||||
<td><input type="password" id="noip-password" placeholder="secret"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="buttons-area">
|
||||
<button class="btn" id="ddns-enable-noip">Finish</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user