diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-07-29 00:24:04 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-08-01 20:06:16 +0200 |
commit | c5bfbf1f4bababbbf885414d0c6bdd9f01cae900 (patch) | |
tree | 9867236392f739624feaadbc62b49e1d4103a69c /patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch | |
parent | e598628cf9603a3484d574ab5cb0c99311e2ddff (diff) |
p/fuel: Rebase, drop upstream clone
Now that Fuel@OPNFV supports submodule patching again, bring back
`make fuel-patches-import`.
Change-Id: Ic6f9870d94b6d302f1ebcdc21d54a83f62910af9
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch')
-rw-r--r-- | patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch b/patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch new file mode 100644 index 00000000..55613432 --- /dev/null +++ b/patches/opnfv-fuel/0005-deploy-Allow-non-root-deploys.patch @@ -0,0 +1,33 @@ +From: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +Date: Mon, 17 Jul 2017 23:10:25 +0000 +Subject: [PATCH] deploy: Allow non-root deploys + +Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +--- + ci/deploy.sh | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/ci/deploy.sh b/ci/deploy.sh +index cf22d10..3d7ccf5 100755 +--- a/ci/deploy.sh ++++ b/ci/deploy.sh +@@ -87,7 +87,7 @@ $(notify "Disabled input parameters (not yet supported with MCP):" 3) + -i (disabled) .iso image to be deployed (needs to be provided in a URI + style, it can be a local resource: file:// or a remote resource http(s)://) + +-$(notify "[NOTE] Root priviledges are needed for this script to run" 3) ++$(notify "[NOTE] sudo priviledges are needed for this script to run" 3) + + Example: + +@@ -240,8 +240,8 @@ do + esac + done + +-if [[ $EUID -ne 0 ]]; then +- notify "[ERROR] This script must be run as root\n" 1>&2 ++if [[ "$(sudo whoami)" != 'root' ]]; then ++ notify "This script requires sudo rights\n" 1>&2 + exit 1 + fi + |