OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32973d0
)
[fix] : Fixed templete unit
author
hayao
<hayao@fascode.net>
Thu, 26 Aug 2021 05:37:49 +0000
(14:37 +0900)
committer
hayao
<hayao@fascode.net>
Thu, 26 Aug 2021 05:37:49 +0000
(14:37 +0900)
modules/share/airootfs.any/root/functions.sh
patch
|
blob
|
history
diff --git
a/modules/share/airootfs.any/root/functions.sh
b/modules/share/airootfs.any/root/functions.sh
index
16e7c1c
..
a5a265b
100644
(file)
--- a/
modules/share/airootfs.any/root/functions.sh
+++ b/
modules/share/airootfs.any/root/functions.sh
@@
-103,6
+103,8
@@
_safe_systemctl(){
else
systemctl "${_command}" "${_service}"
fi
+ elif echo "${_service}" | grep -q "@"; then
+ _safe_systemctl "${_command}" "$(echo "${_service}" | cut -d "@" -f 1)"
else
echo "${_service} was not found" >&2
fi