-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #911 from joseivanlopez/dependencies
Add package dependencies
- Loading branch information
Showing
8 changed files
with
187 additions
and
52 deletions.
There are no files selected for viewing
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
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
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,29 @@ | ||
#!/bin/sh -x | ||
|
||
# Exit on error; unset variables are an error. | ||
set -eu | ||
|
||
MYDIR=$(realpath $(dirname $0)) | ||
|
||
# Helper: | ||
# Ensure root privileges for the installation. | ||
# In a testing container, we are root but there is no sudo. | ||
if [ $(id --user) != 0 ]; then | ||
SUDO=sudo | ||
if [ $($SUDO id --user) != 0 ]; then | ||
echo "We are not root and cannot sudo, cannot continue." | ||
exit 1 | ||
fi | ||
else | ||
SUDO="" | ||
fi | ||
|
||
$SUDO zypper --non-interactive --gpg-auto-import-keys install \ | ||
make \ | ||
'npm>=18' \ | ||
cockpit || exit 1 | ||
|
||
$SUDO systemctl start cockpit | ||
|
||
cd web; make devel-install; cd - | ||
$SUDO ln -snf `pwd`/web/dist /usr/share/cockpit/agama |
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