Skip to content
Snippets Groups Projects
Commit febe889a authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #8437: Propagate signals through chuser.sh

parent 35f5e920
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,10 @@ if [ -n "${LUSER}" ]; then
chown --from=${OLDID} -R ${LUSER}:${LGROUP} /opt
fi
# Switch to the updated user
# Update environment for updated user
export HOME=/home/${USER}
touch -a $HOME/.bashrc
sudo -u ${USER} -E -s /bin/bash -c "source $HOME/.bashrc;$*"
source $HOME/.bashrc
# Use exec to make sure we propagate signals
exec sudo -u ${USER} -E "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment