-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update makefile * feat: align version
- Loading branch information
Showing
12 changed files
with
63 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package version | ||
|
||
const FINALRUP_VERSION = "v0.0.1" |
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,5 @@ | ||
## Setup EasyTier on Linux | ||
|
||
```shell | ||
export EASYTIER_COMMAND="-d --network-name finalrip --network-secret finalrip -e tcp://easytier.public.kkrainbow.top:11010" && curl -fsSL "https://raw.githubusercontent.com/TensoRaws/FinalRip/main/deploy/easytier/easytier.sh" | bash | ||
``` |
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,39 @@ | ||
#!/bin/bash | ||
|
||
ARCH=$(uname -m) | ||
echo "device architecture: $ARCH" | ||
|
||
# download easytier-core | ||
rm -rf easytier-linux-"$ARCH"-v1.2.0.zip easytier-linux-"$ARCH" | ||
wget -c https://github.com/EasyTier/EasyTier/releases/download/v1.2.0/easytier-linux-"$ARCH"-v1.2.0.zip | ||
unzip easytier-linux-"$ARCH"-v1.2.0.zip | ||
mv ./easytier-linux-"$ARCH"/easytier-core /usr/local/bin/ | ||
|
||
# get command line arguments from env variables | ||
# env: EASYTIER_COMMAND | ||
|
||
SERVICE_NAME="easytier" | ||
EXECUTABLE_PATH="/usr/local/bin/easytier-core" | ||
SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service" | ||
|
||
# create service file | ||
cat <<EOF | sudo tee $SERVICE_FILE > /dev/null | ||
[Unit] | ||
Description=EasyTier Core Service | ||
After=network.target | ||
[Service] | ||
Type=simple | ||
ExecStart=${EXECUTABLE_PATH} ${EASYTIER_COMMAND} | ||
[Install] | ||
WantedBy=multi-user.target | ||
EOF | ||
|
||
sudo chmod +x ${EXECUTABLE_PATH} | ||
|
||
sudo systemctl daemon-reload | ||
sudo systemctl enable ${SERVICE_NAME}.service | ||
sudo systemctl start ${SERVICE_NAME}.service | ||
|
||
echo "service ${SERVICE_NAME} has been set to start on boot." |
File renamed without changes.
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
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
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