Update motioneye-install.sh

switched to dev branch for continued development
This commit is contained in:
tteckster 2023-04-29 02:39:40 -04:00 committed by GitHub
parent e7194c92fc
commit 2ca3e77bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 13 deletions

View File

@ -17,6 +17,7 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
$STD apt-get install -y git
$STD apt-get install -y cifs-utils $STD apt-get install -y cifs-utils
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
@ -30,27 +31,23 @@ msg_info "Installing FFmpeg"
$STD apt-get install -y ffmpeg v4l-utils $STD apt-get install -y ffmpeg v4l-utils
msg_ok "Installed FFmpeg" msg_ok "Installed FFmpeg"
msg_info "Installing Python" msg_info "Installing Python3-pip"
$STD apt-get update $STD apt-get install -y python3-pip
$STD apt-get install -y python2 msg_ok "Installed Python3-pip"
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 MotionEye" msg_info "Installing MotionEye"
$STD apt-get update $STD apt-get update
$STD pip install motioneye $STD pip install git+https://github.com/motioneye-project/motioneye.git@dev
mkdir -p /etc/motioneye 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 mkdir -p /var/lib/motioneye
msg_ok "Installed MotionEye" msg_ok "Installed MotionEye"
msg_info "Creating Service" msg_info "Creating Service"
cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service cp /usr/local/lib/python3.9/dist-packages/motioneye/extra/motioneye.systemd /etc/systemd/system/motioneye.service
$STD systemctl enable motioneye systemctl enable -q --now motioneye
systemctl start motioneye
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh