-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Automated] Merged develop into target master
- Loading branch information
Showing
7 changed files
with
76 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#### crowsnest - A webcam Service for multiple Cams and Stream Services. | ||
#### | ||
#### Written by Stephan Wendel aka KwadFan <[email protected]> | ||
#### Copyright 2021 - till today | ||
#### Copyright 2021 - 2023 | ||
#### Co-authored by Patrick Gehrsitz aka mryel00 <[email protected]> | ||
#### Copyright 2023 - till today | ||
#### https://github.com/mainsail-crew/crowsnest | ||
#### | ||
#### This File is distributed under GPLv3 | ||
|
@@ -39,6 +41,9 @@ help: ## Shows this help | |
|
||
update: ## Update crowsnest (fetches and pulls repository changes) | ||
@git fetch && git pull | ||
@bash -c 'bin/build.sh --reclone' | ||
${MAKE} buildclean | ||
${MAKE} build | ||
|
||
report: ## Generate report.txt | ||
@if [ -f ~/report.txt ]; then rm -f ~/report.txt; fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
#### crowsnest - A webcam Service for multiple Cams and Stream Services. | ||
#### | ||
#### Written by Stephan Wendel aka KwadFan <[email protected]> | ||
#### Copyright 2021 - till today | ||
#### Copyright 2021 - 2023 | ||
#### Co-authored by Patrick Gehrsitz aka mryel00 <[email protected]> | ||
#### Copyright 2023 - till today | ||
#### https://github.com/mainsail-crew/crowsnest | ||
#### | ||
#### This File is distributed under GPLv3 | ||
|
@@ -65,6 +67,7 @@ main() { | |
|
||
if [[ "${CROWSNEST_UNATTENDED}" != "1" ]]; then | ||
msg "Doing some tests ...\n" | ||
detect_existing_webcamd | ||
if shallow_cs_dependencies_check; then | ||
CN_INSTALL_CS="1" | ||
else | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
#### crowsnest - A webcam Service for multiple Cams and Stream Services. | ||
#### | ||
#### Written by Stephan Wendel aka KwadFan <[email protected]> | ||
#### Copyright 2021 - till today | ||
#### Copyright 2021 - 2023 | ||
#### Co-authored by Patrick Gehrsitz aka mryel00 <[email protected]> | ||
#### Copyright 2023 - till today | ||
#### https://github.com/mainsail-crew/crowsnest | ||
#### | ||
#### This File is distributed under GPLv3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
#### crowsnest - A webcam Service for multiple Cams and Stream Services. | ||
#### | ||
#### Written by Stephan Wendel aka KwadFan <[email protected]> | ||
#### Copyright 2021 - till today | ||
#### Copyright 2021 - 2023 | ||
#### Co-authored by Patrick Gehrsitz aka mryel00 <[email protected]> | ||
#### Copyright 2023 - till today | ||
#### https://github.com/mainsail-crew/crowsnest | ||
#### | ||
#### This File is distributed under GPLv3 | ||
|
@@ -222,7 +224,7 @@ install_env_file() { | |
sudo -u "${BASE_USER}" cp -f "${env_file}" "${env_target}" | ||
sed -i "s|%CONFPATH%|${CROWSNEST_CONFIG_PATH}|" "${env_target}" | ||
[[ -f "${env_target}" ]] && | ||
grep -q "${BASE_USER}" "${env_target}" || return 1 | ||
grep -q "${CROWSNEST_CONFIG_PATH}" "${env_target}" || return 1 | ||
} | ||
|
||
install_logrotate_conf() { | ||
|
@@ -282,3 +284,36 @@ dietpi_cs_settings() { | |
fi | ||
fi | ||
} | ||
|
||
### Detect legacy webcamd. | ||
detect_existing_webcamd() { | ||
local disable | ||
msg "Checking for mjpg-streamer ...\n" | ||
if [[ -x "/usr/local/bin/webcamd" ]] && [[ -d "/home/${BASE_USER}/mjpg-streamer" ]]; then | ||
msg "Found an existing mjpg-streamer installation!" | ||
msg "This should be stopped and disabled!" | ||
while true; do | ||
read -erp "Do you want to stop and disable existing 'webcamd'? (Y/n) " -i "Y" disable | ||
case "${disable}" in | ||
y|Y|yes|Yes|YES) | ||
msg "Stopping webcamd.service ..." | ||
sudo systemctl stop webcamd.service &> /dev/null | ||
status_msg "Stopping webcamd.service ..." "0" | ||
|
||
msg "\nDisabling webcamd.service ...\r" | ||
sudo systemctl disable webcamd.service &> /dev/null | ||
status_msg "Disabling webcamd.service ..." "0" | ||
return | ||
;; | ||
|
||
n|N|no|No|NO) | ||
msg "\nYou should disable and stop webcamd to use crowsnest without problems!\n" | ||
return | ||
;; | ||
*) | ||
msg "You answered '${disable}'! Invalid input ..." ;; | ||
esac | ||
done | ||
fi | ||
status_msg "Checking for mjpg-streamer ..." "0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
#### crowsnest - A webcam Service for multiple Cams and Stream Services. | ||
#### | ||
#### Written by Stephan Wendel aka KwadFan <[email protected]> | ||
#### Copyright 2021 - till today | ||
#### Copyright 2021 - 2023 | ||
#### Co-authored by Patrick Gehrsitz aka mryel00 <[email protected]> | ||
#### Copyright 2023 - till today | ||
#### https://github.com/mainsail-crew/crowsnest | ||
#### | ||
#### This File is distributed under GPLv3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ | |
#### crowsnest - A webcam Service for multiple Cams and Stream Services. | ||
#### | ||
#### Written by Stephan Wendel aka KwadFan <[email protected]> | ||
#### Copyright 2021 - till today | ||
#### Copyright 2021 - 2023 | ||
#### Co-authored by Patrick Gehrsitz aka mryel00 <[email protected]> | ||
#### Copyright 2023 - till today | ||
#### https://github.com/mainsail-crew/crowsnest | ||
#### | ||
#### This File is distributed under GPLv3 | ||
|