diff options
author | Jo-Philipp Wich <jo@mein.io> | 2016-05-27 09:43:14 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2016-05-27 10:27:45 +0200 |
commit | 7f6945829640e82dadf928c9e214470fa0c5a321 (patch) | |
tree | 2a59f1476d962b22112f8d1e028bc046c9503979 /package/utils/util-linux/Makefile | |
parent | 749d4b77bdbf0b31b9e15c42207ae448ac45c7d9 (diff) | |
download | upstream-7f6945829640e82dadf928c9e214470fa0c5a321.tar.gz upstream-7f6945829640e82dadf928c9e214470fa0c5a321.tar.bz2 upstream-7f6945829640e82dadf928c9e214470fa0c5a321.zip |
base-files: rework postinstall uci-defaults handling
Some package postinstall operations, e.g. those emitted by the LuCI build
system, source and delete the uci-defaults themselves upon package insteall,
causing the generic defaults apply code to trigger shell errors like:
.../luci-app-ddns.postinst: .: line 130: can't open './40_luci-ddns'
Rework the generic apply code to check the existence of the uci-defaults
script before trying to source it, use sed to prefilter the list of entries
from the control file and perform the directory change in a subshell,
avoiding the need for cd $OLDPWD.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/utils/util-linux/Makefile')
0 files changed, 0 insertions, 0 deletions