installer: always cleanup old env

This commit is contained in:
Alfredo Monclus 2024-05-30 09:01:16 -03:00
parent 4dc364a5c6
commit 1578665b71

View File

@ -114,6 +114,10 @@ check_requirements()
create_virtualenv()
{
if [ -d $KSENV ]; then
echo_text "Removing old virtual environment"
rm -rf ${KSENV}
echo_text "Creating virtual environment"
python3 -m venv ${KSENV}
@ -198,6 +202,7 @@ create_policy()
exit 1
fi
echo_text "Installing PolicyKit Rules to ${RULE_FILE}..."
sudo rm ${RULE_FILE}
KS_GID=$( getent group klipperscreen | awk -F: '{printf "%d", $3}' )
sudo tee ${RULE_FILE} > /dev/null << EOF