mirror of
https://github.com/YunoHost-Apps/ergo_ynh.git
synced 2024-09-03 18:26:31 +02:00
add basic instructions page
This commit is contained in:
parent
60c99ac7e2
commit
e162a21591
2 changed files with 66 additions and 0 deletions
|
@ -42,7 +42,9 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
||||
|
||||
final_path=/opt/yunohost/$app
|
||||
final_path_www=/var/www/$app
|
||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||
test ! -e "$final_path_www" || ynh_die --message="This path already contains a folder"
|
||||
|
||||
# Register (book) web path
|
||||
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
|
||||
|
@ -57,6 +59,8 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url
|
|||
ynh_app_setting_set --app=$app --key=language --value=$language
|
||||
ynh_app_setting_set --app=$app --key=network_name --value=$network_name
|
||||
ynh_app_setting_set --app=$app --key=server_name --value=$server_name
|
||||
ynh_app_setting_set --app=$app --key=final_path_www --value=$final_path_www
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
|
||||
#=================================================
|
||||
# STANDARD MODIFICATIONS
|
||||
|
@ -109,6 +113,18 @@ chmod -R o-rwx "$final_path"
|
|||
chown -R $app:www-data "$final_path"
|
||||
chmod +x "$final_path/ergo"
|
||||
|
||||
# Copy help file
|
||||
mkdir -p "$final_path_www/help"
|
||||
if test -e "$YNH_APP_BASEDIR/sources/extra_files/help"; then
|
||||
cp --archive "$YNH_APP_BASEDIR/sources/extra_files/help/." "$final_path_www/help"
|
||||
fi
|
||||
ynh_replace_vars --file="$final_path_www/help/index.html"
|
||||
|
||||
chmod 750 "$final_path_www"
|
||||
chmod -R o-rwx "$final_path_www"
|
||||
chown -R "www-data":"www-data" "$final_path_www"
|
||||
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
50
sources/extra_files/help/index.html
Normal file
50
sources/extra_files/help/index.html
Normal file
|
@ -0,0 +1,50 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title> Ergo Chat IRC Server </title>
|
||||
<style>
|
||||
body {
|
||||
padding-top: 15px;
|
||||
text-align: center;
|
||||
font-family: sans-serif;
|
||||
min-width: 985px;
|
||||
}
|
||||
p, ol {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
font-size: x-large;
|
||||
}
|
||||
div {
|
||||
width: 940px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
text-align: left;
|
||||
}
|
||||
a {
|
||||
cursor: pointer;
|
||||
color: #086dd6;
|
||||
box-sizing: border-box;
|
||||
text-decoration: none;
|
||||
}
|
||||
ul {
|
||||
list-style-type: disc;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ergo Chat IRC Server</h1>
|
||||
<p>To join <strong>__NETWORK_NAME__</strong></p>
|
||||
<div>
|
||||
<p>
|
||||
<strong>IRC Instructions:</strong>
|
||||
</p>
|
||||
<ol>
|
||||
Server Details:
|
||||
<ul>
|
||||
<li>__DOMAIN__ on __PORT__ / __SECURE_PORT__ (SSL)
|
||||
</ul>
|
||||
</ol>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Reference in a new issue