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"