Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Oct 10, 2024
1 parent e878db8 commit d8ff39c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
22 changes: 0 additions & 22 deletions docker/docker-compose-empty-dev.yml

This file was deleted.

1 change: 0 additions & 1 deletion docker/init
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ GO2RTC_DIR="/var/lib/motionui/go2rtc"

# Make sure motion service is stopped
/usr/sbin/service motion stop
killall motion

/bin/bash $WWW_DIR/bin/motionui -p &
chown -R www-data:motionui $DATA_DIR
Expand Down
7 changes: 5 additions & 2 deletions www/update/database/5.0.0.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
$mycameraController = new \Controllers\Camera\Camera();
$mymotionConfigController = new \Controllers\Motion\Config();
$mymotionServiceController = new \Controllers\Motion\Service();
$mygo2rtcController = new \Controllers\Go2rtc\Go2rtc();

/**
Expand Down Expand Up @@ -171,8 +172,10 @@
}

// Trigger motion restart
if (!file_exists(DATA_DIR . '/motion.restart')) {
touch(DATA_DIR . '/motion.restart');
if ($mymotionServiceController->isRunning() === true) {
if (!file_exists(DATA_DIR . '/motion.restart')) {
touch(DATA_DIR . '/motion.restart');
}
}
}

Expand Down

0 comments on commit d8ff39c

Please sign in to comment.