Compare commits

..

5 Commits

Author SHA1 Message Date
tteckster 45205da9a6
Update frigate-install.sh
tweak
2024-04-19 11:30:27 -04:00
tteckster 6f6d83c261
Update frigate-install.sh
tweak
2024-04-19 11:06:40 -04:00
tteckster ff3216aa92
Update frigate-install.sh
tweak
2024-04-19 11:04:50 -04:00
Rémi Bédard-Couture fb4fdab433
Clear log files upon service restart to avoid misleading log rewrites (#2819) 2024-04-19 10:48:10 -04:00
Marc Cizeron 39a1c11940
Update actualbudget.sh (#2817)
Fix update function
2024-04-19 09:21:36 -04:00
2 changed files with 7 additions and 4 deletions

View File

@ -57,7 +57,7 @@ header_info
if [[ ! -d /opt/actualbudget ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /opt/actualbudget ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
systemctl stop actualbudget.service systemctl stop actualbudget.service
/opt/actualbudget cd /opt/actualbudget
git pull git pull
yarn install yarn install
systemctl start actualbudget.service systemctl start actualbudget.service

View File

@ -98,7 +98,7 @@ echo "tmpfs /tmp/cache tmpfs defaults 0 0" >> /etc/fstab
msg_ok "Installed Frigate $RELEASE" msg_ok "Installed Frigate $RELEASE"
if grep -q -o -m1 'avx[^ ]*' /proc/cpuinfo; then if grep -q -o -m1 'avx[^ ]*' /proc/cpuinfo; then
echo -e "AVX support detected" msg_ok "AVX Support Detected"
msg_info "Installing Openvino Object Detection Model (Resilience)" msg_info "Installing Openvino Object Detection Model (Resilience)"
$STD pip install -r /opt/frigate/docker/main/requirements-ov.txt $STD pip install -r /opt/frigate/docker/main/requirements-ov.txt
cd /opt/frigate/models cd /opt/frigate/models
@ -123,7 +123,7 @@ model:
input_pixel_format: bgr input_pixel_format: bgr
labelmap_path: /openvino-model/coco_91cl_bkgr.txt labelmap_path: /openvino-model/coco_91cl_bkgr.txt
EOF EOF
msg_ok "Installed Openvino Object Detection Model (Resilience)" msg_ok "Installed Openvino Object Detection Model"
else else
cat <<EOF >>/config/config.yml cat <<EOF >>/config/config.yml
model: model:
@ -131,7 +131,7 @@ model:
EOF EOF
fi fi
msg_info "Installing Coral Object Detection Model (Resilience)" msg_info "Installing Coral Object Detection Model (Patience)"
cd /opt/frigate cd /opt/frigate
export CCACHE_DIR=/root/.ccache export CCACHE_DIR=/root/.ccache
export CCACHE_MAXSIZE=2G export CCACHE_MAXSIZE=2G
@ -191,6 +191,7 @@ Type=simple
Restart=always Restart=always
RestartSec=1 RestartSec=1
User=root User=root
ExecStartPre=+rm /dev/shm/logs/go2rtc/current
ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/run ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/go2rtc/run
StandardOutput=file:/dev/shm/logs/go2rtc/current StandardOutput=file:/dev/shm/logs/go2rtc/current
StandardError=file:/dev/shm/logs/go2rtc/current StandardError=file:/dev/shm/logs/go2rtc/current
@ -212,6 +213,7 @@ Type=simple
Restart=always Restart=always
RestartSec=1 RestartSec=1
User=root User=root
ExecStartPre=+rm /dev/shm/logs/frigate/current
ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/frigate/run
StandardOutput=file:/dev/shm/logs/frigate/current StandardOutput=file:/dev/shm/logs/frigate/current
StandardError=file:/dev/shm/logs/frigate/current StandardError=file:/dev/shm/logs/frigate/current
@ -233,6 +235,7 @@ Type=simple
Restart=always Restart=always
RestartSec=1 RestartSec=1
User=root User=root
ExecStartPre=+rm /dev/shm/logs/nginx/current
ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run ExecStart=bash /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run
StandardOutput=file:/dev/shm/logs/nginx/current StandardOutput=file:/dev/shm/logs/nginx/current
StandardError=file:/dev/shm/logs/nginx/current StandardError=file:/dev/shm/logs/nginx/current