]> git.sesse.net Git - remoteglot/blobdiff - www/manual-override.pl
Lowercase toplay internally, for consistency with FEN.
[remoteglot] / www / manual-override.pl
index 616e5ea5076174257eab2716cc29c38354d60881..13333524a91b7a78eea44e067e17a015bd5d0a7e 100755 (executable)
@@ -27,7 +27,7 @@ $dbh->do('INSERT INTO game_extensions ( fen, history, player_w, player_b, ts, ne
        Encode::decode_utf8($cgi->param('player_w')),
        Encode::decode_utf8($cgi->param('player_b')),
        Encode::decode_utf8($cgi->param('move')));
-system("touch", $remoteglotconf::json_output);
+system("sudo", "touch", $remoteglotconf::target);
 
 print CGI->header(-type=>'text/plain; charset=utf-8');
 print "OK\n";