mirror of
https://github.com/hsoft/vagrant-lxc-base-boxes
synced 2024-05-15 23:56:30 +00:00
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
|
@ -23,7 +23,11 @@ popd &>>${LOG}
|
||||||
|
|
||||||
# Prepare package contents
|
# Prepare package contents
|
||||||
log 'Preparing box 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}
|
cp conf/metadata.json ${WORKING_DIR}
|
||||||
sed -i "s/<TODAY>/${NOW}/" ${WORKING_DIR}/metadata.json
|
sed -i "s/<TODAY>/${NOW}/" ${WORKING_DIR}/metadata.json
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue