diff --git a/demo.patch b/demo.patch new file mode 100644 index 000000000..860492c5f --- /dev/null +++ b/demo.patch @@ -0,0 +1,78 @@ +diff --git a/www/protected/models/CommandRun.php b/www/protected/models/CommandRun.php +index 436e3d1..df625cb 100644 +--- a/www/protected/models/CommandRun.php ++++ b/www/protected/models/CommandRun.php +@@ -24,7 +24,7 @@ class CommandRun extends Model + public $result; + public $status; + public $timeout = 1440; //24*60 24hours +- public $sudoer = 'root'; ++ public $sudoer = 'admin'; + public $desc_info; + public $return_code; + public $build; +diff --git a/www/protected/models/Job.php b/www/protected/models/Job.php +index 3e23d69..fa3a615 100644 +--- a/www/protected/models/Job.php ++++ b/www/protected/models/Job.php +@@ -20,7 +20,7 @@ class Job extends Model + public $machine_id; + public $stage_num; + public $timeout = 1440; //24*60 24hours +- public $sudoer = 'root'; ++ public $sudoer = 'admin'; + public $status = self::STATUS_AVAILABLE; + public $maxStageNum; + public $failed_repeat = 0; +diff --git a/www/themes/classic/assets/js/job.form.js b/www/themes/classic/assets/js/job.form.js +index 43c3581..835a3f3 100644 +--- a/www/themes/classic/assets/js/job.form.js ++++ b/www/themes/classic/assets/js/job.form.js +@@ -533,7 +533,7 @@ var jobForm = function(){ + $("#Command_parser_id").select2("val", "") + $("#Job_machine_id").val("") + $("#Job_machine_id_input").val("") +- $("#Job_sudoer").val("root") ++ $("#Job_sudoer").val("admin") + $("#Job_timeout").val("1440") + $("#Job_failed_repeat").val("0") + $("#Job_crucial_0").removeAttr("checked") +diff --git a/www/themes/classic/views/command/view.php b/www/themes/classic/views/command/view.php +index f548c63..a21a0c2 100755 +--- a/www/themes/classic/views/command/view.php ++++ b/www/themes/classic/views/command/view.php +@@ -309,7 +309,7 @@ +