Remove '.service' from systemd enable loop as unit_name already contains .service in name

This commit is contained in:
Jason Mehring 2015-07-24 04:39:26 -04:00
parent 8d7d13fb17
commit cba9e8f5ca
No known key found for this signature in database
GPG Key ID: 1BB9B1FB5A4C6DAD

View File

@ -646,7 +646,7 @@ ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
grep '^[[:space:]]*[^#;]' /lib/systemd/system-preset/75-qubes-vm.preset | while read action unit_name; do grep '^[[:space:]]*[^#;]' /lib/systemd/system-preset/75-qubes-vm.preset | while read action unit_name; do
case "$action" in case "$action" in
(disable) (disable)
if [ -f /lib/systemd/system/$unit_name.service ]; then if [ -f /lib/systemd/system/$unit_name ]; then
if ! fgrep -q '[Install]' /lib/systemd/system/$unit_name; then if ! fgrep -q '[Install]' /lib/systemd/system/$unit_name; then
# forcibly disable # forcibly disable
ln -sf /dev/null /etc/systemd/system/$unit_name ln -sf /dev/null /etc/systemd/system/$unit_name