#! /usr/bin/env perl
use
lib
'/home/regular/IdeaProjects/Chrome-Policy/lib'
;
use
autouse
'Data::Printer'
=>
'p'
;
BEGIN {
if
(
$UID
!= 0 ) {
say
'Please execute the program as the root user (for /etc/opt access).'
;
die
'sudo /home/regular/perl5/perlbrew/perls/perl-5.37.8/bin/perl -I /home/regular/perl5/perlbrew/perls/perl-5.37.8/bin/perl chrome_policy'
;
}
}
my
$getopt
= Getopt::Long::Parser -> new;
$getopt
-> configure(
'auto_help'
,
'auto_version'
,
'no_ignore_case'
,
'bundling'
);
$getopt
-> getoptions( \
my
%options
,
'chromium|u'
);
my
$policy
;
unless
(
$options
{chromium} ) {
$policy
= Chrome::Policy::Chrome -> new;
}
else
{
$policy
= Chrome::Policy::Chromium -> new;
}
$policy
-> set_strict_policy;