Thanks for the answers! Unfortunately it does not work at the moment.

I have changed all lines in sudoers with 'pkexec visudo' like this:

Code:
--------------------
    ALL = NOPASSWD: /bin/systemctl/ suspend
--------------------

to

Code:
--------------------
    squeezeboxserver ALL = NOPASSWD: /bin/systemctl/ suspend
--------------------


Also i changed the spc-functions.sh in line 167 like epoch1907 posted
it
I can start the sript with
'/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/srvrpowerctrl-setup.sh'
but get following errors:


Code:
--------------------
    
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/spc-functions.sh:
 Zeile 173: Syntaxfehler beim unerwarteten Wort `fi' 
  
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/spc-functions.sh:
 Zeile 173: ` fi' 
  
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/srvrpowerctrl-setup.sh:
 Zeile 275: spc_get_log_file: Kommando nicht gefunden. 
  
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/srvrpowerctrl-setup.sh:
 Zeile 278: spc_get_slim_username: Kommando nicht gefunden. 
  
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/srvrpowerctrl-setup.sh:
 Zeile 304: spc_get_slim_username: Kommando nicht gefunden. 
  
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/srvrpowerctrl-setup.sh:
 Zeile 64: spc_disp_error_message: Kommando nicht gefunden. 
  
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/srvrpowerctrl-setup.sh:
 Zeile 65: spc_disp_error_message: Kommando nicht gefunden. 
  
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/srvrpowerctrl-setup.sh:
 Zeile 66: spc_disp_error_message: Kommando nicht gefunden. 
  
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SrvrPowerCtrl/scripts/unix/srvrpowerctrl-setup.sh:
 Zeile 67: spc_disp_error_message: Kommando nicht gefunden.
--------------------


Kommando nicht gefunden = command not found
I thought first error message came from 


Code:
--------------------
    ### BUG: returns "squeeze+" on debian 8.x ## 
  ###SLIMUSERID=$(ps -fp "$SLIMSERVICEPID" | grep -v 'UID' | sed -n -e 
's/^\([[:alnum:]]*\)[[:blank:]]*.*$/\1/p') 
  # I guess 25 characters are enough on any platform? SLIMUSERID=$(ps o 
user:25= "$SLIMSERVICEPID") 
  fi
--------------------


So i delete the fi like this: 


Code:
--------------------
    ### BUG: returns "squeeze+" on debian 8.x ## 
  ###SLIMUSERID=$(ps -fp "$SLIMSERVICEPID" | grep -v 'UID' | sed -n -e 
's/^\([[:alnum:]]*\)[[:blank:]]*.*$/\1/p') 
  # I guess 25 characters are enough on any platform? SLIMUSERID=$(ps o 
user:25= "$SLIMSERVICEPID") 
--------------------


but after that i get: 


Code:
--------------------
    Error: logitechmediaserver/squeezeboxserver needs to be running 
  in order for this setup script to install properly. 
  Additionally, this script needs to be run via 
  sudo and not directly by user root.
--------------------


I was not root and use sudo and logitechmediaserver was running


------------------------------------------------------------------------
OleHB's Profile: http://forums.slimdevices.com/member.php?userid=35873
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to