From 86497a23ab49c4878bce55c90d8507ce47e50fb9 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Tue, 12 Dec 2023 09:52:38 +0800 Subject: [PATCH] update --- install.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..8ca794e --- /dev/null +++ b/install.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -e +sudo apt update +sudo apt install supervisor +sudo apt install ffmpeg -y +sudo timedatectl set-timezone Asia/Shanghai + +git config --global user.name xyj +git config --global user.email 1090822794@qq.com +git config --global credential.helper store +git clone https://gitea.lihaink.cn/xyj/lot_manager.git +cd lot_manager +pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple + +python /home/pi/lot_manager/create_db.py +mkdir /home/pi/mp4 + +sudo cp conf/example/supervisord.conf /etc/supervisor/supervisord.conf +sudo chmod 777 /etc/supervisor/conf.d + +sudo systemctl enable supervisor +sudo systemctl start supervisor \ No newline at end of file