From acd2fc46d1b6a3d798892e10af90ecfad5330100 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 20 Oct 2018 12:34:38 -0400 Subject: added --radmins (optionally provide the admins group with root-like access). --- mpackage.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mpackage.sh') diff --git a/mpackage.sh b/mpackage.sh index 79588c7..8499ec6 100755 --- a/mpackage.sh +++ b/mpackage.sh @@ -31,6 +31,9 @@ USAGE: be installed (substitutes @sysroot@) --product name of the distribution to be installed (substitutes @product@) + --radmins provide members of the builtin administrators group + with root-like access to the sysroot directory + (substitutes @radmins@) EOF exit 1 @@ -76,6 +79,7 @@ init_vars() # setup mb_defroot=@sysroot@ mb_product=@product@ + mb_radmins='no' # and voila mb_zipfile=$ZIPFILE_NAME @@ -196,6 +200,7 @@ gen_setup() for f in $(find -type f); do sed -e 's#@sysroot@#'"$mb_defroot"'#g' \ -e 's#@product@#'"$mb_product"'#g' \ + -e 's#@radmins@#'"$mb_radmins"'#g' \ -e 's#@SYSROOT@#'"@sysroot@"'#g' \ $f > $f.tmp || exit 2 @@ -328,6 +333,9 @@ for arg ; do --flysyms) mb_flysyms='yes' ;; + --radmins) + mb_radmins='yes' + ;; --subset=*) mb_subset=${arg#*=} mb_subsets="$mb_subsets $mb_subset" -- cgit v1.2.3