From 5d47ff6aa5b19048bdfd393fd8506c11208bd4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 26 Sep 2023 12:41:05 +0200 Subject: [PATCH] Fix httpsh install --- conf/ttyd_httpsh.conf | 4 ++-- scripts/install | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/ttyd_httpsh.conf b/conf/ttyd_httpsh.conf index a841c21..dceeeba 100644 --- a/conf/ttyd_httpsh.conf +++ b/conf/ttyd_httpsh.conf @@ -1,3 +1,3 @@ -OPTIONS="-a -i lo -t rendererType=canvas -t theme=\"{'background': '#000', 'foreground': '#c7c7c7', 'cursor': '#c7c7c7'}\" -t cursorBlink=true" -COMMAND="__INSTALL_DIR__/httpsh" +OPTIONS="-p __PORT__ -a -i lo -t rendererType=canvas -t theme=\"{'background': '#000', 'foreground': '#c7c7c7', 'cursor': '#c7c7c7'}\" -t cursorBlink=true" +COMMAND="__INSTALL_DIR__/httpsh-ttyd-login" COMMAND_ARGS="" diff --git a/scripts/install b/scripts/install index 555fd5b..a0bb486 100755 --- a/scripts/install +++ b/scripts/install @@ -19,7 +19,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_setup_source --source_id=httpsh --dest_dir="$install_dir/httpsh" # TODO: copy files where needed -mv "$install_dir/httpsh/usr/local/bin/ttyd-login" "$install_dir/httpsh" +mv "$install_dir/httpsh/usr/local/bin/ttyd-login" "$install_dir/httpsh-ttyd-login" ynh_add_config --template="../conf/ttyd_httpsh.conf" --destination="$install_dir/ttyd_httpsh.conf"