From 2ca3e77bea73561c70c088fa731cf7435c0e0963 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 29 Apr 2023 02:39:40 -0400 Subject: [PATCH] Update motioneye-install.sh switched to dev branch for continued development --- install/motioneye-install.sh | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/install/motioneye-install.sh b/install/motioneye-install.sh index 69489209..cbb1a732 100644 --- a/install/motioneye-install.sh +++ b/install/motioneye-install.sh @@ -17,6 +17,7 @@ msg_info "Installing Dependencies" $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc +$STD apt-get install -y git $STD apt-get install -y cifs-utils msg_ok "Installed Dependencies" @@ -30,27 +31,23 @@ msg_info "Installing FFmpeg" $STD apt-get install -y ffmpeg v4l-utils msg_ok "Installed FFmpeg" -msg_info "Installing Python" -$STD apt-get update -$STD apt-get install -y python2 -curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py -$STD python2 get-pip.py -$STD apt-get install -y libffi-dev libzbar-dev libzbar0 -$STD apt-get install -y python2-dev libssl-dev libcurl4-openssl-dev libjpeg-dev -msg_ok "Installed Python" +msg_info "Installing Python3-pip" +$STD apt-get install -y python3-pip +msg_ok "Installed Python3-pip" msg_info "Installing MotionEye" $STD apt-get update -$STD pip install motioneye +$STD pip install git+https://github.com/motioneye-project/motioneye.git@dev mkdir -p /etc/motioneye -cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf +chown -R root:root /etc/motioneye +chmod -R 777 /etc/motioneye +cp /usr/local/lib/python3.9/dist-packages/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf mkdir -p /var/lib/motioneye msg_ok "Installed MotionEye" msg_info "Creating Service" -cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service -$STD systemctl enable motioneye -systemctl start motioneye +cp /usr/local/lib/python3.9/dist-packages/motioneye/extra/motioneye.systemd /etc/systemd/system/motioneye.service +systemctl enable -q --now motioneye msg_ok "Created Service" motd_ssh