1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Replace username in original index.html

This commit is contained in:
Alexandre Aubin 2020-06-17 16:08:05 +02:00
parent fba6f8e495
commit 3e34a7e69d
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -20,7 +20,7 @@
<dt>Port</dt>
<dd>22 (or the port you defined <a href="https://yunohost.org/#/security_fr">if you change the ssh port</a>)</dd>
<dt>User</dt>
<dd>__USER__</dd>
<dd>__APP__</dd>
<dt>Password</dt>
<dd><i>the one you set at installation</i></dd>
</dl>