Skip to content

Commit 63b1497

Browse files
committed
[fix] : Fixed service check
1 parent 35fe213 commit 63b1497

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

channels/share/airootfs.any/root/customize_airootfs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ _systemd_service(){
290290
local _command="${1}"
291291
shift 1
292292
for _service in "${@}"; do
293-
if [[ -f "$(systemctl cat "${_service}" 2> "/dev/null" | head -n 1 | tail | sed 's|# ||g')" ]]; then
293+
#if [[ -f "$(systemctl cat "${_service}" 2> "/dev/null" | head -n 1 | tail | sed 's|# ||g')" ]]; then
294+
if systemctl cat "${_service}" 1>&2 2>/dev/null; then
294295
systemctl ${_command} "${_service}"
295296
fi
296297
done

0 commit comments

Comments
 (0)