1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cockpit_ynh.git synced 2024-09-03 18:16:26 +02:00
This commit is contained in:
ericgaspar 2021-11-25 18:45:05 +01:00
parent 7c74945c35
commit 1b55392293
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 15 additions and 17 deletions

View file

@ -1,11 +1,6 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location ^~ __PATH__/ {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT__;
proxy_http_version 1.1;
proxy_buffering off;

1
doc/DESCRIPTION.md Normal file
View file

@ -0,0 +1 @@
Cockpit is a web-based graphical interface for servers, intended for everyone.

View file

@ -3,29 +3,34 @@
"id": "cockpit",
"packaging_format": 1,
"description": {
"en": "Sysadmin login session in a web browser.",
"fr": "Session de connexion sysadmin dans un navigateur Web."
"en": "Sysadmin login session in a web browser",
"fr": "Session de connexion sysadmin dans un navigateur Web"
},
"version": "232~ynh1",
"version": "257~ynh1",
"url": "https://cockpit-project.org/",
"upstream": {
"license": "LGPL-2.1-only",
"website": "https://cockpit-project.org/",
"demo": "https://demo.example.com",
"admindoc": "https://cockpit-project.org/documentation.html",
"code": "https://some.forge.com/example/example"
},
"license": "LGPL-2.1-only",
"maintainer": {
"name": "liberodark",
"email": "liberodark@gmail.com"
},
"requirements": {
"yunohost": ">= 4.2.4"
"yunohost": ">= 4.3.0"
},
"multi_instance": false,
"services": [
"nginx",
"mysql"
"nginx"
],
"arguments": {
"install": [{
"name": "domain",
"type": "domain",
"example": "example.com"
"type": "domain"
},
{
"name": "path",

View file

@ -34,10 +34,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=2
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
#=================================================
# STANDARD RESTORATION STEPS