15 lines
289 B
Bash
Executable File
15 lines
289 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
export DIB_RHSM_USER=${DIB_RHSM_USER:-}
|
|
|
|
if [ -n "$DIB_RHSM_USER" ] && [ -n "$DIB_RHSM_PASSWORD" ]; then
|
|
if [[ "$DIB_REG_TYPE" == "rhn" ]]; then
|
|
rm -rf /etc/sysconfig/rhn/systemid
|
|
else
|
|
subscription-manager unregister
|
|
fi
|
|
fi
|