commit f763c2152befd8e8ce3ebeaf9146ee4c434c4b55 parent 320269dd67a088a4e1c29dc3408449a4391f0a7b Author: rob <rob@tarina.org> Date: Tue, 27 Feb 2024 12:36:12 +0000 usb filmfolder or microsd Diffstat:
M | gonzopi.py | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/gonzopi.py b/gonzopi.py @@ -5012,8 +5012,11 @@ def gonzopiserver(state): #Try to run apache try: run_command('sudo systemctl start apache2') + os.system("sudo ln -sf -t "+gonzopifolder+"/srv/static/ " + filmfolder) + os.system("sudo chown www-data "+gonzopifolder+"/srv/static/ " + filmfolder) return 'on' except: + os.system("sudo chown pi "+gonzopifolder+"/srv/static/ " + filmfolder) writemessage("could not run gonzopi server") time.sleep(2) return 'off'