-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- build rpm - install rpm - execute setup Signed-off-by: Douglas Schilling Landgraf <[email protected]>
- Loading branch information
Showing
7 changed files
with
64 additions
and
14 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v*.tar.gz | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
qm/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash -ex | ||
|
||
# Define variables for repository URL and directory | ||
REPO_URL="https://github.com/containers/qm.git" | ||
REPO_DIR="qm" | ||
|
||
# Step 1: Clone the repository | ||
rm -rf "$REPO_DIR" | ||
echo "Cloning the repository..." | ||
git clone "$REPO_URL" "$REPO_DIR" | ||
cd "$REPO_DIR" || exit 1 | ||
|
||
# Step 2: Build the RPM package | ||
echo "Building the RPM package..." | ||
if ! make rpm; then | ||
echo "RPM build failed." | ||
exit 1 | ||
fi | ||
|
||
# Optional: Install the RPM package to test it fully | ||
echo "Installing the RPM package..." | ||
if ! sudo dnf install -y rpmbuild/RPMS/noarch/qm*.rpm; then | ||
echo "RPM installation failed." | ||
exit 1 | ||
fi | ||
|
||
# Step 3: Run the setup script and check its exit status | ||
echo "Running /usr/share/qm/setup..." | ||
if /usr/share/qm/setup; then | ||
echo "Setup script ran successfully." | ||
rm -rf qm && exit 0 | ||
else | ||
echo "Setup script failed." | ||
rm -rf qm && exit 1 | ||
fi |