Skip to content

Commit

Permalink
Merge pull request #210 from wincsb/master
Browse files Browse the repository at this point in the history
Fix tarsnode running user
  • Loading branch information
ruanshudong authored Jun 9, 2024
2 parents f1ad7dc + 02b2acf commit 97f9a53
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 97f9a53

Please sign in to comment.