mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Run the package.sh
with sudo
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
baa4c1c321
commit
d90e2983fe
1 changed files with 5 additions and 1 deletions
|
@ -209,7 +209,11 @@ printf "v%.0s" {1..80}; printf "\n"
|
|||
#-------------------------------------------------------------------------------
|
||||
# Build and Sign Package
|
||||
#-------------------------------------------------------------------------------
|
||||
"$SCRIPT_DIR/package.sh" "$VERSION"
|
||||
if [ "$(id -un)" != "root" ]; then
|
||||
sudo "$SCRIPT_DIR/package.sh" "$VERSION"
|
||||
else
|
||||
"$SCRIPT_DIR/package.sh" "$VERSION"
|
||||
fi
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Notarize Package
|
||||
|
|
Loading…
Add table
Reference in a new issue