mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 02:54:28 +05:00
chore: use ls to look for webcamd installation
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
system_check_webui(){
|
system_check_webui(){
|
||||||
### check system for installed moonraker service
|
### check system for installed moonraker service
|
||||||
if ls /etc/systemd/system/moonraker.service 2>/dev/null || ls /etc/systemd/system | grep -q -E "moonraker-[[:digit:]]+.service"; then
|
if ls /etc/systemd/system/moonraker.service 2>/dev/null 1>&2 || ls /etc/systemd/system | grep -q -E "moonraker-[[:digit:]]+.service"; then
|
||||||
moonraker_chk_ok="true"
|
moonraker_chk_ok="true"
|
||||||
else
|
else
|
||||||
moonraker_chk_ok="false"
|
moonraker_chk_ok="false"
|
||||||
@@ -114,7 +114,7 @@ install_webui(){
|
|||||||
$1_port_check
|
$1_port_check
|
||||||
|
|
||||||
### ask user to install mjpg-streamer
|
### ask user to install mjpg-streamer
|
||||||
if [[ ! "$(systemctl list-units --full -all -t service --no-legend | grep -F "webcamd.service")" ]]; then
|
if ls /etc/systemd/system/webcamd.service 2>/dev/null 1>&2; then
|
||||||
get_user_selection_mjpg-streamer
|
get_user_selection_mjpg-streamer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user