-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update linux installation script
- Loading branch information
1 parent
3036fcf
commit 647973b
Showing
2 changed files
with
5 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
#!/bin/bash | ||
|
||
sudo cp dist/TuyaAPI.service /etc/systemd/system/ | ||
sudo mkdir -p /www/tuya-api | ||
go build . && sudo cp tuya-api .env /www/tuya-api/ | ||
|
||
sudo cp TuyaAPI.service /etc/systemd/system/ | ||
sudo systemctl daemon-reload | ||
sudo systemctl enable TuyaAPI | ||
sudo systemctl start TuyaAPI |