configuration file protection
At the moment, there is no way to prevent vpk from altering files.
Example with /etc/nginx/nginx.conf
- user has installed nginx
- 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.
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
Updated by David Demelier 13 days ago
- Status changed from New to In Progress
Applied in changeset vanilla-vpk|a9352a7d875fe653f2da6a27e11ea44d5f724376.
Updated by David Demelier 4 days ago
- % Done changed from 0 to 100
- Status changed from In Progress to Resolved
Applied in changeset vanilla-vpk|56f6d897c9d5bde1c590ac9a7288f4d1fd53b44a.