WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Wbar problem after recent updates  (Read 9331 times)

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Re: Wbar problem after recent updates
« Reply #15 on: March 11, 2012, 06:19:03 AM »
Removing sudo from update_system() in /usr/bin/tce-load solves this issue.

Code: [Select]
update_system() {
if [ "$BOOTING" ]; then
[ "$MODULES" ] && sudo touch /etc/sysconfig/newmodules
else
[ "$THISAPP" != "$EXTENSION" ] || [ "$DOWNLOAD_ONLY" ] || [ "$LOAD_ONLY" ] || echo "$THISAPP" >> ../$ONBOOTNAME
if [ "$MODULES" ]; then
sudo depmod -a 2>/dev/null
sudo /sbin/udevadm trigger
fi
sudo /sbin/ldconfig 2>/dev/null
fi
if [ -x "$TCEINSTALLED"/$2 ]; then
if [ "$BOOTING" ] ; then
echo "$TCEINSTALLED"/$2 >> /tmp/setup.lst
else
#HERE >>                 sudo "$TCEINSTALLED"/$2
fi
else
touch "$TCEINSTALLED"/$2
fi
}

If sudo is needed by a command inside a tce.installed script then it should be handled by the script itself. Tce-load shouldn't run all tce.installed scripts as sudo.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Wbar problem after recent updates
« Reply #16 on: March 11, 2012, 06:58:26 AM »
That would be breaking the tradition too much, all extensions expect it to run as root. Better fix the wbar startup script if it has an issue.
The only barriers that can stop you are the ones you create yourself.