Skip to content

Commit

Permalink
Non root installer (#303)
Browse files Browse the repository at this point in the history
* Support installation for non-root

* update the version 0.3.3

* update the version 0.3.3
  • Loading branch information
cheyang authored Mar 14, 2020
1 parent 20a4df9 commit dfc8706
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.1
0.3.3
16 changes: 13 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,20 @@ rm -rf /usr/local/bin/arena-helm

cp $SCRIPT_DIR/bin/helm /usr/local/bin/arena-helm

if [ -d "/charts" ]; then
mv /charts /charts-$now
# For non-root user, put the charts dir to the home directory
if [ `id -u` -eq 0 ];then
if [ -d "/charts" ]; then
mv /charts /charts-$now
fi
cp -r $SCRIPT_DIR/charts /
else
if [ -d "~/charts" ]; then
mv ~/charts ~/charts-$now
fi
cp -r $SCRIPT_DIR/charts ~/
fi
cp -r $SCRIPT_DIR/charts /



log "--------------------------------"
log "Arena has been installed successfully!"

0 comments on commit dfc8706

Please sign in to comment.