Skip to content

Commit

Permalink
Firewalld Set mysql root password empty, remove reference to stretch …
Browse files Browse the repository at this point in the history
…and bullseye
  • Loading branch information
JeGoi committed Jul 8, 2024
1 parent b45148a commit c7600c6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions debian/packetfence.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,7 @@ case "$1" in
echo "Skipping some steps which will be run at next boot"
fi

if [ ${DIST} = "stretch" ]; then
set +e
/usr/bin/mysql -uroot -e "update mysql.user set plugin='' where User='root'"
/usr/bin/mysql -uroot -e "flush privileges"
set -e
fi
if [ ${DIST} = "bullseye" ] && [ "$DEBIAN_ISO_INSTALLER" = "no" ]; then
if [ ${DIST} = "bookworm" ] && [ "$DEBIAN_ISO_INSTALLER" = "no" ]; then
set +e
/usr/bin/mysql -uroot -e "set password for 'root'@'localhost' = password('')"
set -e
Expand Down

0 comments on commit c7600c6

Please sign in to comment.