mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-23 22:04:24 +01:00
Add persistence for shell command history (#161)
This change makes shell history persistent across launches, which helps save keystrokes...
This commit is contained in:
committed by
Pascal Vizeli
parent
d85d9b4f54
commit
b4b2026c17
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user