Merge lp:~benji/landscape-client/bug-1546743-postinst-creates-file-in-non-existent-directory into lp:~landscape/landscape-client/trunk
Status: | Merged |
---|---|
Approved by: | Benji York |
Approved revision: | 831 |
Merged at revision: | 830 |
Proposed branch: | lp:~benji/landscape-client/bug-1546743-postinst-creates-file-in-non-existent-directory |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
31 lines (+3/-5) 2 files modified
debian/landscape-client.init (+1/-4) debian/landscape-client.postinst (+2/-1) |
To merge this branch: | bzr merge lp:~benji/landscape-client/bug-1546743-postinst-creates-file-in-non-existent-directory |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Collard (community) | Approve | ||
Bogdana Vereha (community) | Approve | ||
Review via email: mp+286509@code.launchpad.net |
Commit message
This branch fixes bug 1546743 which affects fresh client installs.
The client postinst script was attempting to create a file in the data
directory, but that directory is created by the client itself so if
the client had never been run before, the file creation would fail.
This branch modifies the postinst script to create the directory if
needed.
Description of the change
This branch fixes bug 1546743 which affects fresh client installs.
The client postinst script was attempting to create a file in the data
directory, but that directory is created by the client itself so if
the client had never been run before, the file creation would fail.
This branch modifies the postinst script to create the directory if
needed.
Testing instructions:
- build a new set of packages (see "make package")
- stop the client on the test machine
- remove the data_path directory (found in your client configuration)
- install -common and -client packages
- verify that the packages installed without error
- verify that the data_path directory exists
- verify that the data_path directory is owned by "landscape"
One minor comment inline.