Andrew Cook
c69badc70d
Don't check for zmdc.pl when stopping via systemd
...
If this check ever actually returns true, it makes ExecStop a no-op
and systemd will forcefully kill all processes in the service
see man systemd.service
This also prevents a deadlock when running systemctl stop,
zmpkg.pl detects bash as it's parent and attempts to call
systemctl stop itself, which blocks forever waiting for the
task it's in to complete
2014-12-23 20:32:14 +11:00
Emmanuel Papin
cd0b85aaa6
Move dbconfig stuff from rules script to postinst and postrm scripts
2014-12-12 15:06:51 +01:00
Emmanuel Papin
aa31c9b292
Fix regex when removing a sql request in zm_create.sql file
2014-12-12 13:22:33 +01:00
Emmanuel Papin
74f08787d4
Remove buggy functions and debug mode
2014-12-12 13:04:17 +01:00
Emmanuel Papin
665ffcb2bc
Fix a premature exit when reconfiguring
2014-12-10 16:11:56 +01:00
Emmanuel Papin
065850ad2b
Improve debconf data input
2014-12-08 16:57:37 +01:00
Emmanuel Papin
b1c25efcd9
Remove dependency to mysql.service in zoneminder.service
2014-12-07 18:48:11 +01:00
Emmanuel Papin
91719ff7f4
Install and remove package without error even if no database
2014-12-07 15:18:08 +01:00
Emmanuel Papin
f2168f50d1
Fix permissions on /etc/zm/zm.conf as requested by the debian policy
2014-12-07 11:51:08 +01:00
Emmanuel Papin
aab181ffa6
Fix some comments in postinst script
2014-12-07 02:43:08 +01:00
Emmanuel Papin
31fda1fc7c
Bring localization to debconf menus and add french language
2014-12-07 02:38:00 +01:00
Emmanuel Papin
9d4c08ff45
Add version to build dependency on po-debconf
2014-12-07 01:51:36 +01:00
Emmanuel Papin
af0770c33f
Use 'true' to prevent config script from dying and fix a bad variable name
2014-12-07 00:04:26 +01:00
Emmanuel Papin
b201ad2d7e
Do not do some actions when upgrading
2014-12-06 21:39:50 +01:00
Emmanuel Papin
328ccc1bc6
Update the database version after dbconfig upgrade
2014-12-06 21:15:04 +01:00
Emmanuel Papin
6c0854f16f
Fix bad setting of admin account
2014-12-06 18:48:09 +01:00
Emmanuel Papin
8def8a7b94
Re-work of debconf dbconfig integration
2014-12-06 17:50:13 +01:00
Emmanuel Papin
01e57dbbe9
Readd dependency to debconf and dbconfig-common
2014-12-06 14:05:16 +01:00
Emmanuel Papin
65bd73b102
Fix conflict when merging from master
2014-12-06 14:03:24 +01:00
Emmanuel Papin
94dce6729f
Add missing dependency to policykit-1
2014-12-05 23:02:20 +01:00
Emmanuel Papin
441b6631e3
Get a chance to enter config
2014-12-03 23:21:41 +01:00
Emmanuel Papin
e5a986376e
Remove unneeded call to db_purge in postrm script and source the debconf file where it is required
2014-12-03 22:52:10 +01:00
Emmanuel Papin
e0e00e7a64
Add some double quote to string for proper coding
2014-12-03 20:30:33 +01:00
Emmanuel Papin
400e656f52
Adjust a debconf message
2014-12-03 20:27:42 +01:00
Emmanuel Papin
bdc2b383de
Fix exit codes in zoneminder.config
2014-12-03 18:22:19 +01:00
Emmanuel Papin
da3467aa77
Remove a potential remaining file when purging and rework of apache deconfiguration
2014-12-03 17:43:39 +01:00
Emmanuel Papin
805933b501
Re-add missing argument to apache_install function
2014-12-03 17:27:27 +01:00
Emmanuel Papin
6c417e02e4
Only link files with zm_update-*.sql pattern
2014-12-03 16:42:31 +01:00
Emmanuel Papin
0f53347133
Fix package name for directory creation
2014-12-03 16:19:42 +01:00
Emmanuel Papin
ae4e13a9c6
Remove some trailing whitespaces
2014-12-03 16:02:39 +01:00
Emmanuel Papin
1e805ca706
Add dependency to debconf and dbconfig-common
2014-12-03 16:01:31 +01:00
Emmanuel Papin
b164f7953d
Create the directories in dbconfig folder
2014-12-03 15:40:13 +01:00
Emmanuel Papin
8a51a754aa
Install the sql files for dbconfig
2014-12-03 15:38:31 +01:00
Emmanuel Papin
9eb21bc3dd
Fix exit code in debian scripts and remove manual database deletion in postrm script
2014-12-03 14:12:26 +01:00
Emmanuel Papin
7cb62cd3a0
Set debug mode
2014-12-03 13:40:30 +01:00
Emmanuel Papin
cc4324ef37
Work on the debconf integration
2014-12-02 00:58:18 +01:00
Emmanuel Papin
df8b625228
Add files for debconf support
2014-11-30 17:55:26 +01:00
Emmanuel Papin
e0f8136b68
Remove warning insserv: warning: current start runlevel(s) of script 'zoneminder' overrides LSB defaults (empty).
2014-11-30 00:11:10 +01:00
Emmanuel Papin
9a0e766e4c
Revert commits to fix source-is-missing errors (does not work as expected)
2014-11-29 02:08:21 +01:00
Emmanuel Papin
b8119a1e58
Files without sources shall be added in the debian/missing-sources folder
2014-11-29 01:48:38 +01:00
Emmanuel Papin
7ceec9979e
Fix remaining lintian errors by adding files with missing sources to debian/missing-sources
2014-11-29 01:31:25 +01:00
Emmanuel Papin
578dcef4b8
Do not attempt to remove database if no mysql instance (fix a piuparts error)
2014-11-28 21:36:11 +01:00
Emmanuel Papin
b0e3671f99
Fix a typo in debian/rules
2014-11-28 21:30:02 +01:00
Emmanuel Papin
2665eaeb88
First attempt to fix lintian warning debug-file-with-no-debug-symbols
2014-11-28 20:17:48 +01:00
Emmanuel Papin
ad474e81a6
Remove lintian warning "possibly-insecure-handling-of-tmp-files-in-maintainer-script"
...
This reverts commit 720f92a6bb
.
2014-11-28 19:37:42 +01:00
Emmanuel Papin
d318a6f2eb
Source init functions in init scrit (remove a lintian warning)
2014-11-28 19:33:36 +01:00
Emmanuel Papin
56234d7d2e
Provide a dummy init file to fix a lintian error
2014-11-28 19:16:30 +01:00
Emmanuel Papin
720f92a6bb
Delete remaining files and folders in postrm script
2014-11-28 18:32:36 +01:00
Emmanuel Papin
8a9ad93b81
Enable apache CGI module in postinst script (not enabled in debian 8 by default)
2014-11-28 18:07:09 +01:00
Emmanuel Papin
d8973d6cbd
Configure apache in postrm script (code taken from phpmyadmin)
2014-11-28 17:46:37 +01:00