From: Steinar H. Gunderson Date: Tue, 26 Dec 2023 14:17:30 +0000 (+0100) Subject: We need some extra permissions for touch. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a17a37873dc11a9fb6f030f12f1467904f116295;p=remoteglot We need some extra permissions for touch. --- diff --git a/www/manual-override.pl b/www/manual-override.pl index 616e5ea..ed474ff 100755 --- a/www/manual-override.pl +++ b/www/manual-override.pl @@ -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";