tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

commit dba424bb9a580922b37f5419f1ba86e18be9f073
parent 21e679eb443c394d2274f1a1cd2f353f919c932a
Author: rob <rob@tarina.org>
Date:   Mon, 27 Mar 2023 13:18:52 +0100

do session folder

Diffstat:
Mtarina.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/tarina.py b/tarina.py @@ -854,6 +854,8 @@ def main(): camera.awb_gains = (round(camera.awb_gains[0],2), round(camera.awb_gains[1],2) + 0.02) elif menu[selected] == 'SRV:': if serverstate == 'on': + os.makedirs(tarinafolder+'/srv/sessions') + os.system('chown www-data '+tarinafolder+'/srv/sessions') serverstate = 'false' serverstate = tarinaserver(False) elif serverstate == 'off': @@ -990,6 +992,8 @@ def main(): camera.awb_gains = (round(camera.awb_gains[0],2), round(camera.awb_gains[1],2) - 0.02) elif menu[selected] == 'SRV:': if serverstate == 'on': + os.makedirs(tarinafolder+'/srv/sessions') + os.system('chown www-data '+tarinafolder+'/srv/sessions') serverstate = tarinaserver(False) elif serverstate == 'off': serverstate = tarinaserver(True)