Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ regression tests useless. In these cases, the tests can give false negative. For
result files by the following command.

```shell
python manage.py update /path/to/ccextractor/executable
python3 manage.py update /path/to/ccextractor/executable
```

NOTE: Please backup old results and be sure about updating them as there is no method to go back.
Expand Down
2 changes: 1 addition & 1 deletion install/init_db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3

import sys
from os import path
Expand Down
14 changes: 7 additions & 7 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ echo "-------------------------------"
echo ""
echo "* Updating package list"
apt-get update >> "$install_log" 2>&1
echo "* Installing nginx, python, pip, mediainfo and gunicorn"
echo "* Installing nginx, python3, pip, mediainfo and gunicorn"
add-apt-repository ppa:deadsnakes/ppa -y >> "$install_log" 2>&1
apt-get -q -y install python3.9 nginx python3.9-distutils python3-pip mediainfo gunicorn3 >> "$install_log" 2>&1
update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 >> "$install_log" 2>&1
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 >> "$install_log" 2>&1
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 >> "$install_log" 2>&1
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3 1 >> "$install_log" 2>&1
rm -f /etc/nginx/sites-available/default
rm -f /etc/nginx/sites-enabled/default
if [ ! -f /etc/init.d/mysql* ]; then
Expand Down Expand Up @@ -64,9 +64,9 @@ userInput () {
}

echo "* Update pip, setuptools and wheel"
python -m pip install --upgrade pip setuptools wheel >> "$install_log" 2>&1
python3 -m pip install --upgrade pip setuptools wheel >> "$install_log" 2>&1
echo "* Installing pip dependencies"
python -m pip install -r "${root_dir}/requirements.txt" >> "$install_log" 2>&1
python3 -m pip install -r "${root_dir}/requirements.txt" >> "$install_log" 2>&1
echo ""
echo "-------------------------------"
echo "| Configuration |"
Expand Down Expand Up @@ -204,13 +204,13 @@ while [[ $admin_password == "" ]];do
fi
done
echo "Creating admin account: "
python "${root_dir}/install/init_db.py" "${config_db_uri}" "${admin_name}" "${admin_email}" "${admin_password}"
python3 "${root_dir}/install/init_db.py" "${config_db_uri}" "${admin_name}" "${admin_email}" "${admin_password}"
# Create sample database if user wanted to
if [ "${sample_response}" == 'y' ]; then
echo "Creating sample database.."
sample_dir="${dir}/sample_files/*"
cp -r $sample_dir "${sample_repository}/TestFiles"
python "${dir}/sample_db.py" "${config_db_uri}"
python3 "${dir}/sample_db.py" "${config_db_uri}"
fi
echo ""
echo "-------------------------------"
Expand Down
4 changes: 2 additions & 2 deletions install/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ determine what goes wrong. The snippet below shows how this can be done:

```
cd /var/www/sample-platform/
sudo python bootstrap_gunicorn.py
sudo python3 bootstrap_gunicorn.py
```

* If `gunicorn` boots up successfully, most relevant logs will be stored in
Expand Down Expand Up @@ -211,7 +211,7 @@ The file `mod_ci/cron.py` is to be run in periodic intervals. To setup a cron jo
1. Open your terminal and enter the command `sudo crontab -e`.
2. To setup a cron job that runs this file every 10 minutes, append this at the bottom of the file
```
*/10 * * * * python /var/www/sample-platform/mod_ci/cron.py > /var/www/sample-platform/logs/cron.log 2>&1
*/10 * * * * python3 /var/www/sample-platform/mod_ci/cron.py > /var/www/sample-platform/logs/cron.log 2>&1
```
Change the `/var/www/sample-plaform` directory, if you have installed the platform in a different directory.

Expand Down
2 changes: 1 addition & 1 deletion install/sample_db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3

import sys
from os import path
Expand Down
2 changes: 1 addition & 1 deletion mod_ci/cron.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
"""handle cron logic for CI platform."""

import sys
Expand Down
2 changes: 1 addition & 1 deletion mod_upload/progress_ftp_upload.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
"""Maintain logic to show upload progress."""

import sys
Expand Down
Loading