dev-mode: Run kolla_install_projects using sudo
Since packages are installed using root during image build - we need to use sudo when updating those packages when using dev-mode. Change-Id: Idf14e334d50abeb1719563b1733af0b8425b3b55
This commit is contained in:
parent
8f0a3b5871
commit
0644a5df86
@ -16,7 +16,7 @@ ARGS=""
|
||||
sudo kolla_copy_cacerts
|
||||
|
||||
# Install projects that are in /dev-mode
|
||||
kolla_install_projects
|
||||
sudo kolla_install_projects
|
||||
|
||||
if [[ ! "${!KOLLA_SKIP_EXTEND_START[@]}" ]]; then
|
||||
# Run additional commands if present
|
||||
|
@ -20,4 +20,7 @@ root ALL=(ALL) ALL
|
||||
# Copy custom CA certificates to containers
|
||||
%kolla ALL=(root) NOPASSWD: /usr/local/bin/kolla_copy_cacerts
|
||||
|
||||
# Install projects in dev-mode
|
||||
%kolla ALL=(root) NOPASSWD: /usr/local/bin/kolla_install_projects
|
||||
|
||||
#includedir /etc/sudoers.d
|
||||
|
Loading…
Reference in New Issue
Block a user