mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
findme
This commit is contained in:
parent
0bd096cbbd
commit
f462ab7c04
2 changed files with 12 additions and 7 deletions
|
|
@ -38,6 +38,9 @@ runcmd flatpak remote-add --user ${flatpak_remote_name} ${flatpak_remote_url}
|
||||||
runcmd mkdir -p ${root}/flatpak
|
runcmd mkdir -p ${root}/flatpak
|
||||||
runcmd ostree init --repo=${dest_repo} --mode=archive-z2
|
runcmd ostree init --repo=${dest_repo} --mode=archive-z2
|
||||||
<%
|
<%
|
||||||
|
f = open("/findme.txt", "a")
|
||||||
|
f.write("I'm here!")
|
||||||
|
f.close()
|
||||||
cmd_result = subprocess.run(['ostree', 'refs', '--repo=/flatpak/repo'], stdout=subprocess.PIPE)
|
cmd_result = subprocess.run(['ostree', 'refs', '--repo=/flatpak/repo'], stdout=subprocess.PIPE)
|
||||||
all_refs = cmd_result.stdout.decode('utf-8').strip().split('\n')
|
all_refs = cmd_result.stdout.decode('utf-8').strip().split('\n')
|
||||||
found_refs = [entry[7:] for entry in all_refs if entry.startswith('deploy/')]
|
found_refs = [entry[7:] for entry in all_refs if entry.startswith('deploy/')]
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
add_line=$(grep flatpak_manager.add_remote /mnt/install/usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py)
|
add_line=$(grep flatpak_manager.add_remote /mnt/install/usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py)
|
||||||
|
|
||||||
add_line_repo=$(echo ${add_line} | grep ${FLATPAK_REMOTE_NAME})
|
add_line_repo=$(echo ${add_line} | grep ${FLATPAK_REMOTE_NAME})
|
||||||
|
|
@ -12,14 +8,18 @@ add_line_url=$(echo ${add_line} | grep ${_FLATPAK_REPO_URL})
|
||||||
result=0
|
result=0
|
||||||
if [ -z "${add_line_repo}" ]
|
if [ -z "${add_line_repo}" ]
|
||||||
then
|
then
|
||||||
echo "Repo name not updated"
|
echo "Repo name not updated on add_remote line"
|
||||||
result=1
|
result=1
|
||||||
|
else
|
||||||
|
echo "Repo name found on add_remote line"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${add_line_url}" ]
|
if [ -z "${add_line_url}" ]
|
||||||
then
|
then
|
||||||
echo "Repo url not updated"
|
echo "Repo url not updated on add_remote line"
|
||||||
result=1
|
result=1
|
||||||
|
else
|
||||||
|
echo "Repo url found on add_remote line"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
replace_line=$(grep flatpak_manager.replace_installed_refs_remote /mnt/install/usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py)
|
replace_line=$(grep flatpak_manager.replace_installed_refs_remote /mnt/install/usr/lib64/python*/site-packages/pyanaconda/modules/payloads/payload/rpm_ostree/flatpak_installation.py)
|
||||||
|
|
@ -28,8 +28,10 @@ replace_line_repo=$(echo ${replace_line} | grep ${FLATPAK_REMOTE_NAME})
|
||||||
|
|
||||||
if [ -z "${replace_line_repo}" ]
|
if [ -z "${replace_line_repo}" ]
|
||||||
then
|
then
|
||||||
echo "Repo name not updated in second line"
|
echo "Repo name not updated on replace_installed_refs line"
|
||||||
result=1
|
result=1
|
||||||
|
else
|
||||||
|
echo "Repo name found on replace_installed_refs line"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit ${result}
|
exit ${result}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue