]> git.sesse.net Git - remoteglot/commitdiff
We need some extra permissions for touch.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 26 Dec 2023 14:17:30 +0000 (15:17 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 26 Dec 2023 14:17:30 +0000 (15:17 +0100)
www/manual-override.pl

index 616e5ea5076174257eab2716cc29c38354d60881..ed474fffafb2f80180168dc8d30ffc1d16a0c6c8 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::json_output);
 
 print CGI->header(-type=>'text/plain; charset=utf-8');
 print "OK\n";