File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Ken Pepple <ken.pepple@rabbityard.com>
2626Kiall Mac Innes <kiall@managedit.ie>
2727Russell Bryant <rbryant@redhat.com>
2828Scott Moser <smoser@ubuntu.com>
29+ Thierry Carrez <thierry@openstack.org>
2930Todd Willey <xtoddx@gmail.com>
3031Tres Henry <tres@treshenry.net>
3132Vishvananda Ishaya <vishvananda@gmail.com>
Original file line number Diff line number Diff line change @@ -187,13 +187,6 @@ else
187187 sudo chown root:root $TEMPFILE
188188 sudo mv $TEMPFILE /etc/sudoers.d/50_stack_sh
189189
190- # Set up the rootwrap sudoers
191- TEMPFILE=` mktemp`
192- echo " $USER ALL=(root) NOPASSWD: $NOVA_ROOTWRAP " > $TEMPFILE
193- chmod 0440 $TEMPFILE
194- sudo chown root:root $TEMPFILE
195- sudo mv $TEMPFILE /etc/sudoers.d/nova-rootwrap
196-
197190 # Remove old file
198191 sudo rm -f /etc/sudoers.d/stack_sh_nova
199192fi
@@ -1189,6 +1182,13 @@ sudo chown `whoami` $NOVA_CONF_DIR
11891182
11901183cp -p $NOVA_DIR /etc/nova/policy.json $NOVA_CONF_DIR
11911184
1185+ # Set up the rootwrap sudoers
1186+ TEMPFILE= ` mktemp`
1187+ echo " $USER ALL=(root) NOPASSWD: $NOVA_ROOTWRAP " > $TEMPFILE
1188+ chmod 0440 $TEMPFILE
1189+ sudo chown root:root $TEMPFILE
1190+ sudo mv $TEMPFILE /etc/sudoers.d/nova-rootwrap
1191+
11921192if is_service_enabled n-api; then
11931193 # Use the sample http middleware configuration supplied in the
11941194 # Nova sources. This paste config adds the configuration required
You can’t perform that action at this time.
0 commit comments