Support having version-specific lxc-config as conf/${DISTRIBUTION}-${RELEASE}
if present, this is used, otherwise conf/${DISTRIBUTION} as before.
This commit is contained in:
parent
e84c681e38
commit
022112d019
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@ popd &>>${LOG}
|
|||
|
||||
# Prepare package contents
|
||||
log 'Preparing box package contents'
|
||||
cp conf/${DISTRIBUTION} ${WORKING_DIR}/lxc-config
|
||||
if [ -f conf/${DISTRIBUTION}-${RELEASE} ]; then
|
||||
cp conf/${DISTRIBUTION}-${RELEASE} ${WORKING_DIR}/lxc-config
|
||||
else
|
||||
cp conf/${DISTRIBUTION} ${WORKING_DIR}/lxc-config
|
||||
fi
|
||||
cp conf/metadata.json ${WORKING_DIR}
|
||||
sed -i "s/<TODAY>/${NOW}/" ${WORKING_DIR}/metadata.json
|
||||
|
||||
|
|
Loading…
Reference in a new issue