Isaac Connor
b178b0af5e
Fix behaviour of update check to support interactive mode. Use zmDbDo functions to simplify code. When interactive print out lastVersion, latestVersion and currentVersion
2022-01-13 09:54:36 -05:00
Isaac Connor
cb1cbed8e7
update description to reflect that zmupdate.pl now does all the things it will someday do. Meantion how -c works better. When in interactive mode, check once and print out the result instead of daemonising. Fix formatting osf usage
2022-01-13 09:37:54 -05:00
Isaac Connor
91903d2822
Fix user summary, as there must be a space between -u and dbuser, etc
2021-08-05 13:30:52 -04:00
Isaac Connor
c50c30c6b5
Add super command line param to use mysql --defaults-file instead of zmuser/zmpass. This will only work for debian based systems.
2021-04-28 10:03:26 -04:00
Isaac Connor
6225b8babe
Indicate that there should be a space after single char options and their value
2021-04-19 11:56:59 -04:00
Isaac Connor
d984c33b92
Replace old message abou ensuring that ZM is stopped with our new one, which only pauses if ZMIS running.
2020-06-09 13:36:33 -04:00
Isaac Connor
5e0f1a03c5
Detect if system is running and prompt to stop it before doing the update.
2020-06-09 13:19:19 -04:00
Isaac Connor
d4488ac4e1
spacing
2020-06-09 12:18:29 -04:00
Isaac Connor
58ae7bb342
die early if db connection fails
2020-06-07 11:57:20 -04:00
Isaac Connor
f71926c736
Merge branch 'release-1.34'
2020-06-05 10:09:07 -04:00
Isaac Connor
20e6a1f53d
Use single quotes when escaping password so that $ has no effect. Also escape any single quotes in the password.
2020-06-04 11:37:44 -04:00
Isaac Connor
f8a11633bb
Handle no db_host specified, meaning local unix socket
2020-06-04 11:35:48 -04:00
Isaac Connor
6869710747
Handle no db_host specified, meaning local unix socket
2020-06-04 11:28:26 -04:00
Isaac Connor
ade0d750c8
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2020-06-03 15:37:32 -04:00
Isaac Connor
6f42cb22d6
Use single quotes when escaping password so that $ has no effect. Also escape any single quotes in the password.
2020-06-03 15:36:47 -04:00
Kevin Stolp
0e6ff1ad09
Detaint mysql commands in update script
2020-06-01 22:54:29 -07:00
Isaac Connor
a7ef8e3dc8
detaint command before performing backup. Fixes #2945
2020-05-29 14:53:42 -04:00
Isaac Connor
67b35967d4
MOstly spaces and quotes, remove duplicated db version update and only prepare the sth once.
2020-04-23 10:39:50 -04:00
Isaac Connor
bfa08c3422
MOstly spaces and quotes, remove duplicated db version update and only prepare the sth once.
2020-03-27 13:06:10 -04:00
Isaac Connor
766a59884d
Don't hard code perl path. Use PERL_EXECUTABLE cmake var
2019-09-23 12:54:27 -04:00
Isaac Connor
5f5d5f691a
Add backticks for mysql 8
2019-08-25 12:30:06 -04:00
Pliable Pixels
0e72080c4a
Migrate from libdigest to crypt-eks-blowfish due to notice
2019-05-16 09:37:11 -04:00
Pliable Pixels
e9f843f297
bulk overlay hash mysql encoded passwords
2019-05-13 14:29:24 -04:00
Pliable Pixels
87e407aa90
forgot to checkin update file
2019-05-13 10:31:09 -04:00
Isaac Connor
63982a6282
Disable PRIVACY enable
2019-03-18 14:42:05 -04:00
Isaac Connor
f9139f2d98
Use the word skipped instead of aborted
2018-11-30 10:48:20 -05:00
Andrew Bauer
8f0fb0843a
Add Privacy Statement ( #2194 )
...
* initial implementation of privacy popup
* split the privacy text and run it through translate
* change style of toggle button, validate the form
* fix copy/paste error
* fix typos
* display privacy view inline rather than popup
* display privacy inline if show_privacy flag set
* redirect to console after selection is made
* typo
* css formatting
* update privacy verbiage
* create and load default.php
* fix typos
* fix erroneous copy/paste
2018-08-30 13:25:02 -04:00
Isaac Connor
15a6eb7e78
Revert "Add Privacy Statement ( #2176 )" ( #2179 )
...
This reverts commit 56f4d768c2
.
2018-08-13 15:33:43 -04:00
Andrew Bauer
56f4d768c2
Add Privacy Statement ( #2176 )
...
* initial implementation of privacy popup
* split the privacy text and run it through translate
* change style of toggle button, validate the form
* fix copy/paste error
* fix typos
* display privacy view inline rather than popup
* display privacy inline if show_privacy flag set
* redirect to console after selection is made
* typo
* css formatting
* update privacy verbiage
* push privacy text to all language files
2018-08-13 15:23:44 -04:00
Isaac Connor
d63594b5fa
don't do updates in a transaction so we don't hold locks
2018-01-22 14:06:52 -05:00
Isaac Connor
2682686063
Must disconnect and reconnect before calling update script
2018-01-19 16:32:26 -05:00
Isaac Connor
796ba0d899
revert to using the mysql client to do updates. We need it for delemiter changes when adding triggers
2018-01-04 17:16:43 -05:00
Isaac Connor
085d239a6e
Merge branch 'master' into storageareas
2017-06-13 18:02:28 -04:00
Andrew Bauer
df304b417a
Update zmupdate.pl.in
2017-06-13 11:08:58 -05:00
Andrew Bauer
bacf65ae9a
Migrate values from Options -> Paths to zm.conf ( #1908 )
...
* initial commit to migrate contents of Options->Paths to zm.conf
* remove paths items from configdata.pm
* remove paths tab from options
* update deb packaging scripts with new cmake vars
* remove extraneous file
* save custom paths variables to config file before dB is freshened
* don't check configs if the dB version is >= 1.31.0
2017-06-12 21:39:37 -04:00
Isaac Connor
f4224bb88e
Merge branch 'master' into storageareas
2017-05-17 17:47:39 -04:00
Isaac Connor
a933d4ae12
fix spacing and braces
2017-05-17 11:40:54 -04:00
Joshua Ruehlig
3e35fc24a3
Add Socket Support to zmupdate ( #1867 )
...
* Update zmupdate.pl.in
* Fix spacing
* Update zmupdate.pl.in
2017-05-17 11:31:13 -04:00
Isaac Connor
052807aaf5
remove extra my
2017-01-15 10:57:39 -05:00
Isaac Connor
d24d151f53
Slurp db update file in and do() it instead of calling mysql
2017-01-15 10:54:23 -05:00
Andy Bauer
254fcbcef7
update gpl 2 mailing address in source files
2016-12-26 09:23:16 -06:00
Isaac Connor
fbc0086fcc
get the other dbPass use and quote it. Slight visual code style cleanup.
2016-08-08 16:52:09 -04:00
Isaac Connor
25d58f5192
quote the password
2016-08-02 13:22:44 -04:00
Isaac Connor
1069b301a0
functions have been moved from ConfigAdmin to Config
2016-06-12 15:38:59 -04:00
Isaac Connor
182fa9a5cd
revert the bulk of the merge_db_connects changes.
2016-05-20 08:53:53 -04:00
Isaac Connor
b53a0a564d
Don't need the extra use ZoneMinder::Config
2016-05-16 10:07:24 -04:00
Isaac Connor
dd24c35afa
revert bogus optimisation
2016-05-16 10:05:12 -04:00
Isaac Connor
5df85770cd
zmupdate.pl.in
2016-05-13 13:52:34 -04:00
Brandon Odegard
9c72579c2e
Corrected typo in function info
2016-01-22 12:12:39 -06:00
SteveGilvarry
5390605797
Add v to front of version string in version->parse to force conversion of decimal to dotted decimal versions, and change from ge to > to prevent reapplying current version
2015-12-03 10:23:19 +11:00