some fixes

This commit is contained in:
2026-05-28 13:00:09 +02:00
parent 58142fb7ff
commit 6370b55399
+3 -8
View File
@@ -53,7 +53,7 @@ apt-get -q -y install \
uptimed \
unattended-upgrades \
curl \
ntpdate \
ntpsec-ntpdate \
wget \
rsyslog \
vim \
@@ -71,11 +71,6 @@ echo "## enabling unattended-upgrades"
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
dpkg-reconfigure -f noninteractive unattended-upgrades
echo "## deleting default user"
if id user >/dev/null 2>&1; then
userdel -rf user
fi
echo "## setting vim config"
truncate -s0 /root/.vimrc
echo "set mouse=" >>/root/.vimrc
@@ -93,7 +88,7 @@ chmod 600 /root/.ssh/authorized_keys
chown -R root:root /root/.ssh /root/.vimrc
echo "## syncing time"
ntpdate pool.ntp.org
hwclock --systohc
ntpdate pool.ntp.org || true
hwclock --systohc || true
echo "*** DONE ***"