Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .yupdate.post
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
# next yupdate run
#

set -e

if [ "$DEBUG" == "1" ]; then
set -x
fi

SERVICE_NAME="agama"

# restart the installer service if needed
Expand Down
11 changes: 11 additions & 0 deletions .yupdate.pre
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
# run the yupdate script several times
#

set -e

if [ "$DEBUG" == "1" ]; then
set -x
fi

if [ "$YUPDATE_SKIP_FRONTEND" == "1" ]; then
exit 0
fi
Expand Down Expand Up @@ -47,8 +53,13 @@ function add_repos() {
}

function install_packages() {
# stop the service, it might hold the libzypp lock preventing from installing the packages
systemctl stop "$SERVICE_NAME"

add_repos
zypper --non-interactive install --no-recommends "${PACKAGES[@]}"

systemctl start "$SERVICE_NAME"
}

# restore the NPM cache if it is present
Expand Down