We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7faa17e commit 760dddeCopy full SHA for 760ddde
1 file changed
tools/build_uec.sh
@@ -187,10 +187,13 @@ cat > localrc <<LOCAL_EOF
187
ROOTSLEEP=0
188
`cat $TOP_DIR/localrc`
189
LOCAL_EOF
190
+# Disable byobu
191
+byobu-disable
192
EOF
193
194
# Setup stack user with our key
-if [ -e ~/.ssh/id_rsa.pub ]; then
195
+CONFIGURE_STACK_USER=${CONFIGURE_STACK_USER:-yes}
196
+if [[ -e ~/.ssh/id_rsa.pub && "$CONFIGURE_STACK_USER" = "yes" ]]; then
197
PUB_KEY=`cat ~/.ssh/id_rsa.pub`
198
cat >> $vm_dir/uec/user-data<<EOF
199
mkdir -p /opt/stack
@@ -206,8 +209,6 @@ grep -q "^#includedir.*/etc/sudoers.d" /etc/sudoers ||
206
209
echo "#includedir /etc/sudoers.d" >> /etc/sudoers
207
210
( umask 226 && echo "stack ALL=(ALL) NOPASSWD:ALL" \
208
211
> /etc/sudoers.d/50_stack_sh )
-# Disable byobu
-byobu-disable
212
213
fi
214
0 commit comments