lib/danarchy_deploy/groups.rb in danarchy_deploy-0.1.5 vs lib/danarchy_deploy/groups.rb in danarchy_deploy-0.1.6
- old
+ new
@@ -21,21 +21,21 @@
deployment
end
private
def self.groupadd(group, options)
- groupadd_cmd = "groupadd #{group[:groupname]} "
+ groupadd_cmd = "sudo groupadd #{group[:groupname]} "
groupadd_cmd += "--gid #{group[:gid]} " if group[:gid]
groupadd_cmd += "--system " if group[:system]
if options[:pretend]
puts "\tFake run: #{groupadd_cmd}"
else
DanarchyDeploy::Helpers.run_command(groupadd_cmd, options)
end
end
def self.groupdel(group, options)
- groupdel_cmd = "groupdel #{group[:groupname]}"
+ groupdel_cmd = "sudo groupdel #{group[:groupname]}"
if options[:pretend]
puts "\tFake run: #{groupdel_cmd}"
else
DanarchyDeploy::Helpers.run_command(groupdel_cmd, options)
end