Skip to content

Commit

Permalink
fix the tar package.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid committed Nov 6, 2013
1 parent f3df804 commit dbdc280
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ function package_files {

mv server build/influxdb

cp config.json.sample build/config.json
sed -i.bak -e 's/"AdminAssetsDir.*/"AdminAssetsDir": "\/opt\/influxdb\/current\/admin\/",/' build/config.json
rm build/config.json.bak
cp config.json.sample build/

# cp -R src/admin/site/ build/admin/
mkdir build/admin
Expand All @@ -54,6 +52,11 @@ function package_files {
tar -czf $tar_file build/*

mv $tar_file packages/

# the tar file should use "./assets" but the deb and rpm packages should use "/opt/influxdb/current/admin"
mv build/config.json.sample build/config.json
sed -i.bak -e 's/"AdminAssetsDir.*/"AdminAssetsDir": "\/opt\/influxdb\/current\/admin\/",/' build/config.json
rm build/config.json.bak
}

function build_packages {
Expand Down

0 comments on commit dbdc280

Please sign in to comment.