diff --git a/install.sh b/install.sh index 067c39a..517a3eb 100755 --- a/install.sh +++ b/install.sh @@ -21,9 +21,9 @@ if [ -d /srv/gamestats ]; then rm -r /srv/rushstats fi mkdir /srv/gamestats -cp -r "$parent_path"/dist /srv/gamestats -cp -r "$parent_path"/loader /srv/gamestats -chown -r /srv/gamestats rushstats rushstats +cp -r "$parent_path"/dist/* /srv/gamestats +cp -r "$parent_path"/loader/* /srv/gamestats +chown -R rushstats:rushstats /srv/gamestats echo "" @@ -57,11 +57,11 @@ echo "" echo "---" echo "Reloading daemons and starting service" echo "---" -systemctl daeomon-reload +systemctl daemon-reload systemctl enable rushstats.service systemctl start rushstats.service echo "" echo "---" echo "Creating the cron job to refresh the database." -echo "---" \ No newline at end of file +echo "---" diff --git a/loader/chron-script.sh b/loader/chron-script.sh index 2a88206..f0c7e2a 100644 --- a/loader/chron-script.sh +++ b/loader/chron-script.sh @@ -1,11 +1,10 @@ #!/bin/bash parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) - PYTHON_VEN="$parent_path"/venv/bin/python if [ ! -f $PYTHON_VEN ]; then echo "Setting up new VENV" - python -m venv venv + python3 -m venv venv echo "Installing requirements." source ./venv/bin/activate pip install -r requirements.txt @@ -13,4 +12,4 @@ if [ ! -f $PYTHON_VEN ]; then fi echo "Start DB Creation" -$parent_path/venv/bin/python createrushdatabase.py \ No newline at end of file +$parent_path/venv/bin/python createrushdatabase.py