Add persistence for shell command history (#161)

This change makes shell history persistent across launches, which helps save keystrokes...
This commit is contained in:
NotoriousBDG
2017-08-02 05:12:48 -04:00
committed by Pascal Vizeli
parent d85d9b4f54
commit b4b2026c17

View File

@@ -44,5 +44,10 @@ else
cp -fp "$KEYS_PATH"/* /etc/ssh/
fi
# Persist shell history by redirecting .ash_history to /data
touch /data/.ash_history
chmod 600 /data/.ash_history
ln -s -f /data/.ash_history /root/.ash_history
# start server
exec /usr/sbin/sshd -D -e < /dev/null