This repository has been archived by the owner on Jul 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed an issue with installing nitrod
Signed-off-by: Jason McCallister <jason@craftcms.com>
- Loading branch information
1 parent
4cd2ead
commit d74a0d0
Showing
3 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# download the | ||
curl -s https://api.github.com/repos/craftcms/nitro/releases/latest \ | ||
| grep "browser_download_url" \ | ||
| grep "nitrod_linux_x86_64" \ | ||
| cut -d : -f 2,3 | tr -d \" \ | ||
| wget --directory-prefix=/tmp -qi - | ||
|
||
# move nitrod into place | ||
cd /tmp && tar xfz /tmp/nitrod_linux_x86_64.tar.gz | ||
mv /tmp/nitrod /usr/sbin/ | ||
mv /tmp/nitrod.service /etc/systemd/system/ | ||
|
||
# setup the service | ||
systemctl daemon-reload | ||
systemctl start nitrod | ||
systemctl enable nitrod |