From 3e34a7e69d8c12a5d9b899c787ec7461f881fdf8 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 17 Jun 2020 16:08:05 +0200 Subject: [PATCH] Replace username in original index.html --- scripts/install | 1 + sources/www/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 19cb9e1..464c781 100644 --- a/scripts/install +++ b/scripts/install @@ -129,6 +129,7 @@ mkdir -p "$final_path/www" if [ $with_sftp -eq 1 ] then ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../sources/www/index.html + ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file=../sources/www/index.html # Copy files to the right place cp "../sources/www/index.html" "$final_path/www/index.html" diff --git a/sources/www/index.html b/sources/www/index.html index 051a429..b4dd3ea 100644 --- a/sources/www/index.html +++ b/sources/www/index.html @@ -20,7 +20,7 @@
Port
22 (or the port you defined if you change the ssh port)
User
-
__USER__
+
__APP__
Password
the one you set at installation