Project

General

Profile

Feature #1157

configuration file protection

Added by David Demelier 9 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
vpk
Target version:
-
Start date:
03/01/2019
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:

Description

At the moment, there is no way to prevent vpk from altering files.

Example with /etc/nginx/nginx.conf

  1. user has installed nginx
  2. an upgrade of nxing is available

If the nginx.conf file is identical to the new one, nothing is done. Otherwise, the original file is kept and /etc/nginx/nginx.conf.new is installed.

Support in info files

By default, vpk will overwrite any file. However, any file listed in PKGPROTECT will not be extracted. Files must not be marked as absolute.

PKGPROTECT="etc/nginx/nginx.conf"

Support in vpk

vpk should allow an option to overwrite protection but unset by default.

Example: override user config.

vpk upgrade --with-protected-override nginx

Example: don't override user config (install .new or copy if unchanged)

vpk upgrade nginx

Associated revisions

Revision 61:a9352a7d875f (diff)
Added by David Demelier 4 months ago

build: support PKGPROTECT, continue #1157

Revision 89:56f6d897c9d5 (diff)
Added by David Demelier 4 months ago

install: support protected files, closes #1157 @2h

History

#1

Updated by David Demelier 4 months ago

  • Status changed from New to In Progress
#2

Updated by David Demelier 4 months ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Resolved
#3

Updated by David Demelier 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF