Skip to content

Commit

Permalink
install script created ~/.aptomi from the current user, not from root
Browse files Browse the repository at this point in the history
  • Loading branch information
romangithub1024 committed Feb 1, 2018
1 parent 4bb8e3c commit 722ae27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/aptomi_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,16 @@ api:
auth:
username: admin
EOL
run_as_root mkdir -p ${APTOMI_CLIENT_CONFIG_DIR}
run_as_root cp ${TMP_DIR}/config.yaml ${APTOMI_CLIENT_CONFIG_DIR}/config.yaml
mkdir -p ${APTOMI_CLIENT_CONFIG_DIR}
cp ${TMP_DIR}/config.yaml ${APTOMI_CLIENT_CONFIG_DIR}/config.yaml
fi
}

function copy_examples() {
log_sub "Copying examples into $COLOR_GREEN${APTOMI_CLIENT_CONFIG_DIR}/examples$COLOR_RESET"

run_as_root mkdir -p ${APTOMI_CLIENT_CONFIG_DIR}
run_as_root cp -R ${UNPACKED_PATH}/examples ${APTOMI_CLIENT_CONFIG_DIR}/
mkdir -p ${APTOMI_CLIENT_CONFIG_DIR}
cp -R ${UNPACKED_PATH}/examples ${APTOMI_CLIENT_CONFIG_DIR}/
}

function test_aptomi() {
Expand Down

0 comments on commit 722ae27

Please sign in to comment.