-
-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: use warp when needed with ssh protocol
- Loading branch information
1 parent
212a208
commit 61e27b3
Showing
2 changed files
with
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
systemctl stop hiddify-ssh-liberty-bridge | ||
systemctl disable hiddify-ssh-liberty-bridge | ||
systemctl stop hiddify-ssh-liberty-bridge > /dev/null 2>&1 | ||
systemctl disable hiddify-ssh-liberty-bridge > /dev/null 2>&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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
source /opt/hiddify-manager/common/utils.sh | ||
latest=$(get_release_version ssh-liberty-bridge) | ||
source /opt/hiddify-manager/common/package_manager.sh | ||
|
||
mkdir -p host_key | ||
if [ "$(cat VERSION 2>/dev/null)" != $latest ]; then | ||
curl -sL -o ssh-liberty-bridge https://github.com/hiddify/ssh-liberty-bridge/releases/latest/download/ssh-liberty-bridge-$(dpkg --print-architecture) | ||
version="" #use specific version if needed otherwise it will use the latest | ||
download_package ssh-liberty-bridge ssh-liberty-bridge $version | ||
if [ "$?" == "0" ] || ! is_installed ./ssh-liberty-bridge; then | ||
chmod +x ssh-liberty-bridge | ||
echo $latest >VERSION | ||
useradd liberty-bridge | ||
set_installed_version ssh-liberty-bridge $version | ||
fi | ||
chown liberty-bridge .env* | ||
chown liberty-bridge .env* |