alpine: 3.7
Hi, i want to perform some operations when logging in.
I write the operation in /etc/profile /root/profile /root/.profile /root/.ashrc,
but do not work when i login use /bin/sh or /bin/ash.
What should i do ?
o, i see, the default shell is non-login shell.
Need to use 'sh -l' or 'ash -l' login
This answer solved my problem.
https://stackoverflow.com/questions/38024160/how-to-get-etc-profile-to-run-automatically-in-alpine-docker/38025686
Most helpful comment
o, i see, the default shell is non-login shell.
Need to use 'sh -l' or 'ash -l' login