Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
sudo/extentions should not be set globally but appended to for
Browse files Browse the repository at this point in the history
xbmc::live recipe.
  • Loading branch information
fnichol committed Dec 4, 2010
1 parent da22a10 commit 28de2b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions attributes/live.rb
Expand Up @@ -17,11 +17,3 @@
# limitations under the License.
#

default[:authorization][:sudo][:extensions] << <<-SUDO
### XBMC-specific configuration ###
# XBMC
Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt # XBMC
Cmnd_Alias MOUNT_CMDS = /bin/mount, /bin/umount # XBMC
xbmc ALL=NOPASSWD: SHUTDOWN_CMDS, MOUNT_CMDS # XBMC
SUDO

8 changes: 8 additions & 0 deletions recipes/live.rb
Expand Up @@ -43,6 +43,14 @@
end
end

node[:authorization][:sudo][:extensions] << <<-SUDO.gsub(/^ {2}/, '')
### XBMC-specific configuration ###
# XBMC
Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt # XBMC
Cmnd_Alias MOUNT_CMDS = /bin/mount, /bin/umount # XBMC
xbmc ALL=NOPASSWD: SHUTDOWN_CMDS, MOUNT_CMDS # XBMC
SUDO

%w{xbmc-live policykit-1 upower}.each do |pkg|
package pkg
end
Expand Down

0 comments on commit 28de2b9

Please sign in to comment.