Skip to content

Commit

Permalink
Fix tarsnode running user
Browse files Browse the repository at this point in the history
Fixed the issue that the tarsnode process could not be run by the specified running user when installing a node
  • Loading branch information
wincsb authored May 23, 2024
1 parent f1ad7dc commit 02b2acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/service/resource/tarsnode_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ if [ $OS != 3 ]; then

uid=`whoami`
if [ "$uid" != "${runuser}" ] && [ "${runuser}" != "" ]; then
echo "su $runuser: now uid:$uid, runuser:$runuser"
su - $runuser -c "sh ${TARS_PATH}/tarsnode/util/start.sh"
echo "su ${runuser}: now uid:$uid, runuser:${runuser}"
su - ${runuser} -c "sh ${TARS_PATH}/tarsnode/util/start.sh"
else
sh ${TARS_PATH}/tarsnode/util/start.sh
fi
Expand Down

0 comments on commit 02b2acf

Please sign in to comment.