Skip to content

Commit

Permalink
new: use warp when needed with ssh protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Dec 15, 2024
1 parent 212a208 commit 61e27b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions other/ssh/disable.sh
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
12 changes: 7 additions & 5 deletions other/ssh/install.sh
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*

0 comments on commit 61e27b3

Please sign in to comment.