jenkins-pipelines/scripts/helpers/create-deb-meta-priv.sh
Davlet Panech a70033aec7 Multi-part build Jenkins pipelines for StarlingX
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2022-08-10 16:03:43 -04:00

14 lines
266 B
Bash

#!/bin/bash
set -ex
: ${__REALLY_RUN_ME:?}
apt-get update
apt-get install apt-utils -y
chown "$1" .
groupadd --gid "$2" --non-unique "group-$2"
useradd --gid "$2" --uid "$1" --non-unique --no-create-home "user-$1"
/sbin/runuser "user-$1" -- ./create-deb-meta.sh