Im writing simple script, to be run by root, which needs to run some parametrized commands in other users behalf
Eg in below sample I'd like to make dir with version taken from variable 'VER' But whatever I did it doesnt work... VER variable value is not being correctly passed to command (Ive tried surround command by double quotes etc)
VER='10.2.1'
su - other_user -c 'mkdir -p /home/other_user/$VER'
Any idea how to archieve that ?