修改参数
This commit is contained in:
parent
57049c1550
commit
cd00c1ada5
|
@ -42,21 +42,20 @@ if __name__ == "__main__":
|
|||
help=_("Do not check for updates source when updating"))
|
||||
parser.add_option ("--no-update", action="store_true",
|
||||
dest="no_update", default=False,
|
||||
help=_("Do not check for updates when starting"))
|
||||
help="Do not check for updates when starting")
|
||||
parser.add_option("-c", "--close-filter",
|
||||
default=False,
|
||||
action="store_true", dest="close_filter",
|
||||
help=_("Quit and close allowed_origin"))
|
||||
help=_("Quit and close allowed origin"))
|
||||
parser.add_option("--no-check-network",
|
||||
default=False,
|
||||
action="store_true", dest="no_check_network",
|
||||
help=_("Quit and close check_network"))
|
||||
help=_("Quit and close check network"))
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
if os.getuid() != 0:
|
||||
print(_("You need to be root to run this application"))
|
||||
|
||||
sys.exit(1)
|
||||
|
||||
# set debconf to NON_INTERACTIVE
|
||||
|
|
Loading…
Reference in New Issue