some fixes
This commit is contained in:
+3
-8
@@ -53,7 +53,7 @@ apt-get -q -y install \
|
|||||||
uptimed \
|
uptimed \
|
||||||
unattended-upgrades \
|
unattended-upgrades \
|
||||||
curl \
|
curl \
|
||||||
ntpdate \
|
ntpsec-ntpdate \
|
||||||
wget \
|
wget \
|
||||||
rsyslog \
|
rsyslog \
|
||||||
vim \
|
vim \
|
||||||
@@ -71,11 +71,6 @@ echo "## enabling unattended-upgrades"
|
|||||||
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
|
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
|
||||||
dpkg-reconfigure -f noninteractive unattended-upgrades
|
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"
|
echo "## setting vim config"
|
||||||
truncate -s0 /root/.vimrc
|
truncate -s0 /root/.vimrc
|
||||||
echo "set mouse=" >>/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
|
chown -R root:root /root/.ssh /root/.vimrc
|
||||||
|
|
||||||
echo "## syncing time"
|
echo "## syncing time"
|
||||||
ntpdate pool.ntp.org
|
ntpdate pool.ntp.org || true
|
||||||
hwclock --systohc
|
hwclock --systohc || true
|
||||||
|
|
||||||
echo "*** DONE ***"
|
echo "*** DONE ***"
|
||||||
|
|||||||
Reference in New Issue
Block a user