Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #17659: An error in during upgrade to 6.1 breaks rudder upgrade and everything #2312

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
3 changes: 2 additions & 1 deletion rudder-webapp/SOURCES/rudder-webapp-postinst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ echo " Done"
echo -n "INFO: Removing ncf-api-venv user and group ..."
systemctl stop ${APACHE} >> ${LOG_FILE}

rm -rf /var/lib/ncf-api-venv

if getent passwd ncf-api-venv >/dev/null; then
userdel ncf-api-venv -r >> ${LOG_FILE}
fi
Expand All @@ -39,7 +41,6 @@ if getent group ncf-api-venv >/dev/null; then
groupdel --system ncf-api-venv >> ${LOG_FILE}
fi

rm -rf /var/lib/ncf-api-venv
echo " Done"


Expand Down
2 changes: 2 additions & 0 deletions rudder-webapp/SPECS/rudder-webapp.spec
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ fi
#=================================================
%post -n rudder-webapp

set -e

RUDDER_FIRST_INSTALL="false"

# Do this ONLY at first install
Expand Down