Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Wrong build path in install.sh #11879

Merged
merged 4 commits into from
Sep 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,20 @@ if [ "$1" == "development" ]; then
fi

cd $ROOTPATH
curl -fSL "https://s3.amazonaws.com/rocketchatbuild/rocket.chat-develop.tgz" -o rocket.chat.tgz
tar zxf rocket.chat.tgz && rm rocket.chat.tgz
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0E163286C20D07B9787EBE9FD7F9D0414FD08104

curl -SLf "https://releases.rocket.chat/latest/download/" -o rocket.chat.tgz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the develop release is actually at https://releases.rocket.chat/develop/download/ .. or did you change to latest on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's a script never used, and wouldn't be updated between master and develop I figured it better to have anyone using it to actually install latest stable

curl -SLf "https://releases.rocket.chat/latest/asc" -o rocket.chat.tgz.asc \

gpg --verify rocket.chat.tgz.asc
if [ $? -eq 0 ]; then
echo "Verified download integrity"
else
echo "Invalid file, download corrupted or incomplete"
exit 1
fi

tar zxf rocket.chat.tgz && rm rocket.chat.tgz rocket.chat.tgz.asc
cd $ROOTPATH/bundle/programs/server
npm install
pm2 startOrRestart $ROOTPATH/current/$PM2FILE