auto touch

This commit is contained in:
jr-k 2024-05-16 03:01:35 +02:00
parent b9d0bcd3d3
commit 313f865de1
3 changed files with 12 additions and 9 deletions

View File

@ -56,8 +56,8 @@ git clone https://github.com/jr-k/obscreen.git && cd obscreen
# Install application dependencies
python3 -m venv venv
source ./venv/bin/python
pip3 install -r requirements.txt
source ./venv/bin/activate
pip install -r requirements.txt
# Add some sample data
cp data/db/slideshow.json.dist data/db/slideshow.json

View File

@ -69,8 +69,8 @@ git clone https://github.com/jr-k/obscreen.git && cd obscreen
# Install application dependencies
python3 -m venv venv
source ./venv/bin/python
pip3 install -r requirements.txt
source ./venv/bin/activate
pip install -r requirements.txt
# Add some sample data
cp data/db/slideshow.json.dist data/db/slideshow.json

View File

@ -110,12 +110,15 @@ class ConfigManager:
player_autostart_path = self.DEFAULT_PLAYER_AUTOSTART_PATH if in_docker else path
if os.path.isdir(path) or not os.path.exists(path):
logging.error(
"Player autostart file {} doesn't exist on your server'\n".format(
player_autostart_path
if not in_docker:
open(player_autostart_path, 'a').close()
else:
logging.error(
"Player autostart file {} doesn't exist on your server'\n".format(
player_autostart_path
)
)
)
sys.exit(1)
sys.exit(1)
else:
logging.info("Overriding player autostart file {}".format(player_autostart_path))