Commit Graph

14373 Commits

Author SHA1 Message Date
Isaac Connor e039b136c0 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2019-12-29 16:46:45 -05:00
Isaac Connor f065daf940 spacing, move some variables deeper in scope, merge fprintf calls 2019-12-29 16:46:30 -05:00
Isaac Connor e68cd02dca
Merge pull request #2788 from anon8675309/fix_quotes
Fixed unquoted variable which was failing to correctly detect error case
2019-12-29 16:33:48 -05:00
adam ce7b62c825 Fixed unquoted variable which was failing to correctly detect error case
This was discovered when there was a DNS failure (it's always DNS) and
it caused a syntax error on line 178.  I changed it to use -z to check
for a zero length string, as suggested by the man page.  Putting $VERSION
in double quotes would also be a valid fix.

Here's what the script looks like when it fails:

./do_debian_package.sh --snapshot=stable --type=local --interactive=no
Doing local build
Defaulting to bionic for distribution
Defaulting to ZoneMinder upstream git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Latest stable branch is
git clone https://github.com/ZoneMinder/ZoneMinder.git ZoneMinder_zoneminder_release
Cloning into 'ZoneMinder_zoneminder_release'...
fatal: unable to access 'https://github.com/ZoneMinder/ZoneMinder.git/': Could not resolve host: github.com
./do_debian_package.sh: line 172: cd: ZoneMinder_zoneminder_release: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
cat: ZoneMinder_zoneminder_release/version: No such file or directory
./do_debian_package.sh: line 178: [: ==: unary operator expected
Doing local release zoneminder_
mv: cannot stat 'ZoneMinder_zoneminder_release': No such file or directory
Error status code is: 0
Setting up build dir failed.
2019-12-29 14:13:49 -06:00
Isaac Connor b5e3dbd415 put back 32bit alignment with a comment as to why 2019-12-29 12:52:34 -05:00
Isaac Connor 2581b86195 add more content to the error message when can't sws_scale.
Also fix problem when using 32bit on arm instead of 24bit, apparently 0 is a valid return result from sws_scale.
Also change the alignment in av_image_fill_arrays. At some point we cahnged it to 32bit aligned, but in 1.32 we didn't align at all.  Not sure if it matters
.
2019-12-29 12:44:59 -05:00
Isaac Connor bbcd1846e7 Fix hang caused by using %d instead of PRIu64 in formatting string 2019-12-29 12:44:30 -05:00
Andrew Bauer 2301103da5 use small, non-zero values, for image buffer & pre & post buffers 2019-12-28 09:49:42 -06:00
Andrew Bauer ce3691be85 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2019-12-28 08:37:40 -06:00
Andrew Bauer 00cedc92d2 fix typo 2019-12-28 08:37:16 -06:00
Andrew Bauer 0aa82a74ec
remove support for f29 builds 2019-12-27 17:13:13 -06:00
Andrew Bauer 276428be59
el8 needs php-json 2019-12-27 16:39:24 -06:00
Andrew Bauer 77f026a389 exclude external-repo.noarch.rpm during deployments 2019-12-27 09:12:49 -06:00
Andrew Bauer 28a6e71992 deploy raspbian builds to debian target folder 2019-12-27 09:04:02 -06:00
Andrew Bauer 3bc1543f9e build rpms on every commit 2019-12-26 19:36:33 -06:00
Isaac Connor 845f35fe00 Fix cases of check before creating dirs. Add chmod so they are only readable by web user. Fix MonitorName => Monitor->Name() 2019-12-26 15:57:25 -05:00
Isaac Connor 66ec110b02 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2019-12-26 15:21:33 -05:00
Isaac Connor 1977e48ddd DefaultScale is a member of the Monitor, not the event 2019-12-26 15:21:27 -05:00
Isaac Connor 4426546a56
Merge pull request #2785 from connortechnology/fix_2784
Add empty array value for terms when there isn't any
2019-12-26 11:23:52 -05:00
Isaac Connor 9e43e06a55 Add empty array value for terms when there isn't any to get rid of warning when loading all events 2019-12-26 11:22:42 -05:00
Andrew Bauer 5bd353928e update rsync text 2019-12-25 09:05:50 -06:00
Andrew Bauer aa0dc4729b exit immediately if deploy host does not respond 2019-12-25 08:45:10 -06:00
Andrew Bauer 73aba586d4 move eslint into env matrix + other build tweaks 2019-12-25 08:41:53 -06:00
Andrew Bauer 69abf2d314
Remove i386 bionic builds
The i386 Bionic container is not ready. This build will be re-enabled when the container is done.
2019-12-24 14:26:30 -06:00
Andrew Bauer 0f7fbc8c79
use my el-8 container
packpack el-8 container contains a dnf related bug, which causes el8 builds to fail. Switch to a container I built with a workaround.
2019-12-24 09:53:56 -06:00
Andrew Bauer 635988f0cc use quotes for correctness 2019-12-23 17:13:38 -06:00
Andrew Bauer f3116589e3 replace sshfs with rsync for all deployments 2019-12-23 17:08:57 -06:00
Andrew Bauer 8025f8d6eb
add support for fedora 31 2019-12-23 14:49:25 -06:00
Isaac Connor 76b54a468f use left join instead of inner join when listing monitors 2019-12-22 18:43:53 -05:00
Isaac Connor 42a724891b spacing 2019-12-20 16:11:38 -05:00
Isaac Connor 63d20a1514 Move hidden inputs to top of form 2019-12-20 16:11:24 -05:00
Isaac Connor 5a45835006 break up long lines 2019-12-20 16:11:10 -05:00
Isaac Connor 23dde04725 remove timeout on changing runstate. 2019-12-20 16:10:30 -05:00
Isaac Connor fc017893bc Sort the log filtering options. Fixes #2756 2019-12-20 16:09:34 -05:00
Isaac Connor d9cd1dad1a
Merge pull request #2774 from connortechnology/fix_2772
dirty fix filtering Monitors by GroupId.
2019-12-20 14:58:49 -05:00
Isaac Connor d25a91ad13 Make Group containable 2019-12-20 14:56:14 -05:00
Isaac Connor bcda92058e proper way to make cakephp filter by group. Make Group containable, always add the join 2019-12-20 14:56:01 -05:00
Isaac Connor 0142c71c85 Merge branch 'master' into fix_2772 2019-12-20 11:02:27 -05:00
Isaac Connor a84031f819 TEXT fields cannot have default values 2019-12-19 09:25:22 -05:00
Isaac Connor 3c59be9616 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2019-12-19 09:24:44 -05:00
Isaac Connor 958a6b8218 Merge branch 'master' of github.com:zoneminder/ZoneMinder 2019-12-18 19:06:19 -05:00
Isaac Connor 67cc9faa8c remove contentForm id from form in state view which isn't used and conflicts if it is used anywhere else. 2019-12-18 19:05:06 -05:00
Isaac Connor d21fa5c48a Do not set defaults in Object->set(). This allows us to set an empty timestamp. 2019-12-18 19:03:37 -05:00
Isaac Connor 34354f5871 Add Notes field to monitors to store random info in. Bump version to 1.33.16. use htmlSElect for savejpegs. Move storage area under Storage tab. 2019-12-18 12:13:00 -05:00
Isaac Connor 3b12b67b4a fix eslint 2019-12-18 10:40:51 -05:00
Isaac Connor 5e4c3e1edb
Merge pull request #2780 from connortechnology/fix_2771
fix #2771.
2019-12-15 15:32:42 -05:00
Isaac Connor 5f006421cc fix #2771. Correct relationship from hasMany to hasAndBelongsToMany for Monitors in Group Modelel. Use save Assiociated in Controller, and add code to handle backwards compatibility by turning MonitorIds into the appropriate Monitor array 2019-12-15 15:31:40 -05:00
Isaac Connor 2a4d06f93b Merge branch 'master' of github.com:ZoneMinder/zoneminder 2019-12-15 10:35:56 -05:00
Isaac Connor 4d9d4ba957 Do not allow deletion of archived events. 2019-12-15 10:35:43 -05:00
Isaac Connor 16a73d6d5a don't seek back when not neccesary 2019-12-13 18:12:33 -05:00