installer: always cleanup old env
This commit is contained in:
parent
4dc364a5c6
commit
1578665b71
@ -114,6 +114,10 @@ check_requirements()
|
|||||||
|
|
||||||
create_virtualenv()
|
create_virtualenv()
|
||||||
{
|
{
|
||||||
|
if [ -d $KSENV ]; then
|
||||||
|
echo_text "Removing old virtual environment"
|
||||||
|
rm -rf ${KSENV}
|
||||||
|
|
||||||
echo_text "Creating virtual environment"
|
echo_text "Creating virtual environment"
|
||||||
python3 -m venv ${KSENV}
|
python3 -m venv ${KSENV}
|
||||||
|
|
||||||
@ -198,6 +202,7 @@ create_policy()
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo_text "Installing PolicyKit Rules to ${RULE_FILE}..."
|
echo_text "Installing PolicyKit Rules to ${RULE_FILE}..."
|
||||||
|
sudo rm ${RULE_FILE}
|
||||||
|
|
||||||
KS_GID=$( getent group klipperscreen | awk -F: '{printf "%d", $3}' )
|
KS_GID=$( getent group klipperscreen | awk -F: '{printf "%d", $3}' )
|
||||||
sudo tee ${RULE_FILE} > /dev/null << EOF
|
sudo tee ${RULE_FILE} > /dev/null << EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user