Start file tweaks

- do not automatically update

- pass command line arguments to main Python file
This commit is contained in:
TheKysek 2017-06-04 10:38:06 +02:00
parent 3cb7157afd
commit 1e94fa48b9
No known key found for this signature in database
GPG Key ID: 50D9AF00D0B1C497
3 changed files with 6 additions and 4 deletions

View File

@ -15,7 +15,8 @@ chmod +x start.sh
./start.sh ./start.sh
``` ```
It is worth noting that while executing the `start.sh` file MiNode tries to do a `git pull` in order to update itself to the latest version. It is worth noting that the `start.sh` file MiNode no longer tries to do a `git pull` in order to update to the latest version.
Is is now done by the `update.sh` file.
## Contact ## Contact
- TheKysek: BM-2cVUMXVnQXmTJDmb7q1HUyEqkT92qjwGvJ - TheKysek: BM-2cVUMXVnQXmTJDmb7q1HUyEqkT92qjwGvJ

View File

@ -1,4 +1,2 @@
#!/bin/sh #!/bin/sh
cd "$(dirname "$0")" python3 src/main.py "$@"
git pull
python3 src/main.py

3
update.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cd "$(dirname "$0")"
git pull