diff --git a/roles/kalite/tasks/install.yml b/roles/kalite/tasks/install.yml index 0954d0925..51350ec10 100644 --- a/roles/kalite/tasks/install.yml +++ b/roles/kalite/tasks/install.yml @@ -63,8 +63,8 @@ extra_args: "--no-cache-dir" when: not (is_ubuntu_2404 is defined and is_ubuntu_2404) -- name: Use scripts/U2404_python2.sh to install python2 and virtualenv - command: bash "{{ iiab_dir }}/scripts/U2404_python2.sh" +- name: Run scripts/install_python2_kalite-venv_u2404.sh if Ubuntu 24.04 + command: bash "{{ iiab_dir }}/scripts/install_python2_kalite-venv_u2404.sh" when: is_ubuntu_2404 is defined and is_ubuntu_2404 - name: "Install from templates: venv wrapper /usr/bin/kalite, unit file /etc/systemd/system/kalite-serve.service" diff --git a/scripts/U2404_python2.sh b/scripts/install_python2_kalite-venv_u2404.sh old mode 100644 new mode 100755 similarity index 95% rename from scripts/U2404_python2.sh rename to scripts/install_python2_kalite-venv_u2404.sh index ea26a3640..0841704df --- a/scripts/U2404_python2.sh +++ b/scripts/install_python2_kalite-venv_u2404.sh @@ -33,7 +33,7 @@ virtualenv --always-copy --pip 20.3.4 --setuptools 44.1.1 --no-wheel -p python2. cd /usr/local/kalite/venv source bin/activate -bin/pip install ka-lite-static --no-python-version-warning --no-cache-dir +bin/pip install ka-lite-static --no-python-version-warning --no-cache-dir deactivate #apt -y remove `apt list *python2* | grep installed | awk -F / '{ print $1 }'` @@ -45,4 +45,3 @@ apt -y remove libmpdec3 python3-pip python3-wheel apt update apt -y upgrade -