portable-service: add quick_start feature and ci

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-11-16 20:32:22 +08:00
parent 0a2627f06a
commit 0199770454
6 changed files with 33 additions and 7 deletions

View File

@@ -1553,6 +1553,13 @@ pub fn run_as_system(arg: &str) -> ResultType<()> {
pub fn elevate_or_run_as_system(is_setup: bool, is_elevate: bool, is_run_as_system: bool) {
// avoid possible run recursively due to failed run.
log::info!(
"elevate:{}->{:?}, run_as_system:{}->{}",
is_elevate,
is_elevated(None),
is_run_as_system,
crate::username(),
);
let arg_elevate = if is_setup {
"--noinstall --elevate"
} else {