mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-27 12:44:15 +01:00
syncplay wrapper: only work more once a day
This commit is contained in:
parent
f4164c0039
commit
e02690148b
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
if [ -f "/tmp/syncplay.$(id -u).$(date -I)" ]; then
|
||||||
|
echo "Syncplay has been touched today"
|
||||||
|
else
|
||||||
# If syncplay doesn't exist, get it
|
# If syncplay doesn't exist, get it
|
||||||
if [ ! -d "$HOME/src/github.com/syncplay" ]; then
|
if [ ! -d "$HOME/src/github.com/syncplay" ]; then
|
||||||
mkdir -p ~/src/github.com/syncplay/syncplay
|
mkdir -p ~/src/github.com/syncplay/syncplay
|
||||||
@ -28,8 +31,11 @@ python3 -m venv venv || exit
|
|||||||
pip3 install pip --upgrade
|
pip3 install pip --upgrade
|
||||||
pip3 install -r requirements.txt --upgrade
|
pip3 install -r requirements.txt --upgrade
|
||||||
pip3 install -r requirements_gui.txt --upgrade
|
pip3 install -r requirements_gui.txt --upgrade
|
||||||
|
touch /tmp/syncplay.$(id -u).$(date -I)
|
||||||
|
fi
|
||||||
|
|
||||||
# finally launch the syncplay server with any flags specified
|
# finally launch the syncplay with any flags specified
|
||||||
|
. ~/src/github.com/syncplay/syncplay/venv/bin/activate
|
||||||
~/src/github.com/syncplay/syncplay/syncplayClient.py "$@"
|
~/src/github.com/syncplay/syncplay/syncplayClient.py "$@"
|
||||||
# my syncplay launcher says this is a terminal app, so in case something goes
|
# my syncplay launcher says this is a terminal app, so in case something goes
|
||||||
# wrong, let it stay open for a moment for me to see what.
|
# wrong, let it stay open for a moment for me to see what.
|
||||||
|
Loading…
Reference in New Issue
Block a user