Skip to content

Commit

Permalink
containers/ws: Drop bad checks from uninstall script
Browse files Browse the repository at this point in the history
This was copy-pasted from the install script, but these checks are
entirely irrelevant for uninstalling.
  • Loading branch information
martinpitt authored and jelly committed Oct 22, 2024
1 parent f949f84 commit b795dde
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions containers/ws/label-uninstall
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -eu

# This is the install script for Cockpit when run in a privileged container
# This is the uninstall script for Cockpit when run in a privileged container
#
# The host file system must be mounted at /host

Expand All @@ -11,18 +11,6 @@ if [ ! -d /host/etc -o ! -d /host/proc -o ! -d /host/var/run ]; then
echo "host file system is not mounted at /host" >&2
exit 1
fi
if [ ! -f /host/usr/bin/cockpit-bridge ]; then
echo "cockpit-bridge must be installed in the host" >&2
exit 1
fi
if [ ! -d /host/usr/share/cockpit ]; then
echo "cockpit-system and other resources must be installed in the host" >&2
exit 1
fi
if [ -f /host/usr/libexec/cockpit-ws ]; then
echo "cockpit-ws must not be installed in the host" >&2
exit 1
fi

set -x

Expand Down

0 comments on commit b795dde

Please sign in to comment.