File tree Expand file tree Collapse file tree 5 files changed +11
-2
lines changed
Expand file tree Collapse file tree 5 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- set -x
43# update latest available version in /var/run/.ncp-latest-version
54
65TEMPDIR=" $( mktemp -d /tmp/ncp-check.XXXXXX || ( echo " Failed to create temp dir. Exiting" >&2 ; exit 1 ) ) "
Original file line number Diff line number Diff line change 5656fi
5757apt-get full-upgrade -y
5858
59+ apt-get install -y --no-install-recommends exfatprogs
5960restore_maintenance_mode
6061cfg=" $( jq " ." " $NCPCFG " ) "
6162cfg=" $( jq " .release = \" bookworm\" " <<< " $cfg" ) "
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ systemctl disable ssh
4343rm -f /etc/systemd/system/getty@.service.d/override.conf
4444rm -f /etc/systemd/system/serial-getty@.service.d/override.conf
4545rm -f /root/.not_logged_in_yet
46+ sed -i ' s|^root::|root:x:|' /etc/passwd
4647
4748basename " $IMG " | tee /usr/local/etc/ncp-baseimage
4849
Original file line number Diff line number Diff line change 246246EOF
247247
248248 echo '
249- NCP is not activated yet. Please enter this instances local IP address in your webbrowser to complete activation.' >> /etc/issue
249+ NCP is not activated yet. Please enter https://nextcloudpi.local or this instance' " '" ' s local IP address in your webbrowser to complete activation.
250+ ' >> /etc/issue
250251 chmod a+x /etc/update-motd.d/*
251252
252253 # # HOSTNAME AND mDNS
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ if getent passwd " $LOGNAME " | grep -e ' root' | grep -e ' /usr/sbin/nologin'
4+ then
5+ chsh -s /bin/bash root
6+ passwd -l root
7+ fi
You can’t perform that action at this time.
0 commit comments