auto touch
This commit is contained in:
parent
c2c8494874
commit
b4a26b4bf2
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user