Skip to content

Commit f1b0ae4

Browse files
committed
ncp.sh: Show warning on tty login if NCP is not activated
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
1 parent 1622273 commit f1b0ae4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bin/ncp/CONFIG/nc-passwd.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ configure()
2929
a2dissite ncp-activation
3030
a2ensite ncp 001-nextcloud
3131
apachectl -k graceful
32+
sed -i -e 's/^NCP is not activated yet.*$//' /etc/issue
3233

3334
# Trusted Domain (local/public IP), also configures notify_push
3435
bash /usr/local/bin/nextcloud-domain.sh

ncp.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ EOF
244244
#!/bin/bash
245245
/usr/local/bin/ncp-check-updates
246246
EOF
247+
248+
echo '
249+
NCP is not activated yet. Please enter this instances local IP address in your webbrowser to complete activation.' >> /etc/issue
247250
chmod a+x /etc/update-motd.d/*
248251

249252
## HOSTNAME AND mDNS

0 commit comments

Comments
 (0)