fixes vib not setting image name
This commit is contained in:
parent
142f534edf
commit
5582c81237
2 changed files with 2 additions and 5 deletions
|
|
@ -5,7 +5,7 @@
|
|||
"registry": "ghcr.io",
|
||||
"registryService": "registry.ghcr.io",
|
||||
"registryAPIVersion": "v2",
|
||||
"name": "taukakao/custom",
|
||||
"name": "changed_automatically_by_vib",
|
||||
"tag": "main",
|
||||
|
||||
"iPkgMngPre": "lpkg --unlock",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
name: add-image-name
|
||||
type: shell
|
||||
commands:
|
||||
- BASE_IMAGE="$(cat /image-info/base-image-name)"
|
||||
- IMAGE_NAME="$(cat /image-info/image-name)"
|
||||
- echo base image "$BASE_IMAGE"
|
||||
- echo custom image name "$IMAGE_NAME"
|
||||
- BASE_IMAGE_ESCAPED="$(echo $BASE_IMAGE | sed 's/\//\\\//g')"
|
||||
- IMAGE_NAME_ESCAPED="$(echo $IMAGE_NAME | sed 's/\//\\\//g')"
|
||||
- sed -i "s/$BASE_IMAGE_ESCAPED/$IMAGE_NAME_ESCAPED/g" /usr/share/abroot/abroot.json
|
||||
- sed -i "s/changed_automatically_by_vib/$IMAGE_NAME_ESCAPED/g" /usr/share/abroot/abroot.json
|
||||
- rm -rf /image-info
|
||||
|
|
|
|||
Loading…
Reference in a new issue