Replace hard-coded user-name "sdn" with variable ${ONOS_USER}
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -18,7 +18,7 @@ ssh $remote " | ... | @@ -18,7 +18,7 @@ ssh $remote " |
18 | [ -d $ONOS_INSTALL_DIR/bin ] && echo \"ONOS is already installed\" && exit 1 | 18 | [ -d $ONOS_INSTALL_DIR/bin ] && echo \"ONOS is already installed\" && exit 1 |
19 | 19 | ||
20 | # Prepare a landing zone and unroll the bits | 20 | # Prepare a landing zone and unroll the bits |
21 | - sudo mkdir -p $ONOS_INSTALL_DIR && sudo chown sdn:sdn $ONOS_INSTALL_DIR | 21 | + sudo mkdir -p $ONOS_INSTALL_DIR && sudo chown ${ONOS_USER}:${ONOS_USER} $ONOS_INSTALL_DIR |
22 | tar zxmf /tmp/$ONOS_BITS.tar.gz -C $ONOS_INSTALL_DIR --strip-components=1 | 22 | tar zxmf /tmp/$ONOS_BITS.tar.gz -C $ONOS_INSTALL_DIR --strip-components=1 |
23 | 23 | ||
24 | # Make a link to the log file directory and make a home for auxiliaries | 24 | # Make a link to the log file directory and make a home for auxiliaries | ... | ... |
-
Please register or login to post a comment