Skip to content

Commit

Permalink
ncp.sh: Show warning on tty login if NCP is not activated
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Kn枚ppler <6317548+theCalcaholic@users.noreply.github.com>
  • Loading branch information
theCalcaholic committed Apr 27, 2024
1 parent 1622273 commit f1b0ae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/ncp/CONFIG/nc-passwd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ configure()
a2dissite ncp-activation
a2ensite ncp 001-nextcloud
apachectl -k graceful
sed -i -e 's/^NCP is not activated yet.*$//' /etc/issue

# Trusted Domain (local/public IP), also configures notify_push
bash /usr/local/bin/nextcloud-domain.sh
Expand Down
3 changes: 3 additions & 0 deletions ncp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ EOF
#!/bin/bash
/usr/local/bin/ncp-check-updates
EOF

echo '
NCP is not activated yet. Please enter this instances local IP address in your webbrowser to complete activation.' >> /etc/issue
chmod a+x /etc/update-motd.d/*

## HOSTNAME AND mDNS
Expand Down

0 comments on commit f1b0ae4

Please sign in to comment.