Commit graph

2 commits

Author SHA1 Message Date
Kapp Arnaud
90682b7f81 Allow the systemd plugin to work when sudo is not installed.
Problem: The systemd plugin requires sudo to be installed.
The plugin set-up aliases sc-* for each systemctl command, and
prefix the alias with sudo so they can be used from non-root
account. However, this doesn't work if "sudo" is not installed.

Solution: Do not prefix the alias with "sudo" when they
are created for the root account.

This doesn't change anything for non-root user, but allows
root user to use the plugin even when sudo is not available
on the machine.
2015-06-08 21:39:39 +02:00
Augusto Rocha Elesbão
58d904a289 Added systemd plugin with aliases for systemctl commands. 2012-10-01 11:29:06 -03:00