1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cockpit_ynh.git synced 2024-09-03 18:16:26 +02:00

Merge pull request #9 from YunoHost-Apps/example

Example
This commit is contained in:
yalh76 2022-06-04 01:20:03 +02:00 committed by GitHub
commit 1ad146e436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 39 additions and 33 deletions

View file

@ -5,7 +5,7 @@ It shall NOT be edited by hand.
# Cockpit for YunoHost # Cockpit for YunoHost
[![Integration level](https://dash.yunohost.org/integration/cockpit.svg)](https://dash.yunohost.org/appci/app/cockpit) ![](https://ci-apps.yunohost.org/ci/badges/cockpit.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/cockpit.maintain.svg) [![Integration level](https://dash.yunohost.org/integration/cockpit.svg)](https://dash.yunohost.org/appci/app/cockpit) ![Working status](https://ci-apps.yunohost.org/ci/badges/cockpit.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/cockpit.maintain.svg)
[![Install Cockpit with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cockpit) [![Install Cockpit with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cockpit)
*[Lire ce readme en français.](./README_fr.md)* *[Lire ce readme en français.](./README_fr.md)*
@ -19,31 +19,30 @@ Cockpit is a web-based graphical interface for servers, intended for everyone.
**Shipped version:** 188~ynh1 **Shipped version:** 188~ynh2
## Screenshots ## Screenshots
![](./doc/screenshots/screenshot-storage.png) ![Screenshot of Cockpit](./doc/screenshots/screenshot-storage.png)
## Documentation and resources ## Documentation and resources
* Official app website: https://cockpit-project.org/ * Official app website: <https://cockpit-project.org/>
* Official admin documentation: https://cockpit-project.org/documentation.html * Official admin documentation: <https://cockpit-project.org/documentation.html>
* Upstream app code repository: https://github.com/cockpit-project/cockpit * Upstream app code repository: <https://github.com/cockpit-project/cockpit>
* YunoHost documentation for this app: https://yunohost.org/app_cockpit * YunoHost documentation for this app: <https://yunohost.org/app_cockpit>
* Report a bug: https://github.com/YunoHost-Apps/cockpit_ynh/issues * Report a bug: <https://github.com/YunoHost-Apps/cockpit_ynh/issues>
## Developer info ## Developer info
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing). Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing).
To try the testing branch, please proceed like that. To try the testing branch, please proceed like that.
```
``` bash
sudo yunohost app install https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug sudo yunohost app install https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug
or or
sudo yunohost app upgrade cockpit -u https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug sudo yunohost app upgrade cockpit -u https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug
``` ```
**More info regarding app packaging:** https://yunohost.org/packaging_apps **More info regarding app packaging:** <https://yunohost.org/packaging_apps>

View file

@ -1,10 +1,14 @@
<!--
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
It shall NOT be edited by hand.
-->
# Cockpit pour YunoHost # Cockpit pour YunoHost
[![Niveau d'intégration](https://dash.yunohost.org/integration/cockpit.svg)](https://dash.yunohost.org/appci/app/cockpit) ![](https://ci-apps.yunohost.org/ci/badges/cockpit.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/cockpit.maintain.svg) [![Niveau d'intégration](https://dash.yunohost.org/integration/cockpit.svg)](https://dash.yunohost.org/appci/app/cockpit) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/cockpit.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/cockpit.maintain.svg)
[![Installer Cockpit avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cockpit) [![Installer Cockpit avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=cockpit)
*[Read this readme in english.](./README.md)* *[Read this readme in english.](./README.md)*
*[Lire ce readme en français.](./README_fr.md)*
> *Ce package vous permet d'installer Cockpit rapidement et simplement sur un serveur YunoHost. > *Ce package vous permet d'installer Cockpit rapidement et simplement sur un serveur YunoHost.
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
@ -15,31 +19,30 @@ Cockpit is a web-based graphical interface for servers, intended for everyone.
**Version incluse :** 188~ynh1 **Version incluse :** 188~ynh2
## Captures d'écran ## Captures d'écran
![](./doc/screenshots/screenshot-storage.png) ![Capture d'écran de Cockpit](./doc/screenshots/screenshot-storage.png)
## Documentations et ressources ## Documentations et ressources
* Site officiel de l'app : https://cockpit-project.org/ * Site officiel de l'app : <https://cockpit-project.org/>
* Documentation officielle de l'admin : https://cockpit-project.org/documentation.html * Documentation officielle de l'admin : <https://cockpit-project.org/documentation.html>
* Dépôt de code officiel de l'app : https://github.com/cockpit-project/cockpit * Dépôt de code officiel de l'app : <https://github.com/cockpit-project/cockpit>
* Documentation YunoHost pour cette app : https://yunohost.org/app_cockpit * Documentation YunoHost pour cette app : <https://yunohost.org/app_cockpit>
* Signaler un bug : https://github.com/YunoHost-Apps/cockpit_ynh/issues * Signaler un bug : <https://github.com/YunoHost-Apps/cockpit_ynh/issues>
## Informations pour les développeurs ## Informations pour les développeurs
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing). Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing).
Pour essayer la branche testing, procédez comme suit. Pour essayer la branche testing, procédez comme suit.
```
``` bash
sudo yunohost app install https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug sudo yunohost app install https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug
ou ou
sudo yunohost app upgrade cockpit -u https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug sudo yunohost app upgrade cockpit -u https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug
``` ```
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps **Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>

View file

@ -1,16 +1,20 @@
;; Test complet ;; Test complet
; Manifest ; Manifest
domain="domain.tld" domain="domain.tld"
path="/path"
; Checks ; Checks
pkg_linter=1 pkg_linter=1
setup_sub_dir=0 setup_sub_dir=1
setup_root=1 setup_root=1
setup_nourl=0 setup_nourl=0
setup_private=0 setup_private=0
setup_public=0 setup_public=0
upgrade=1 upgrade=1
# 188~ynh1
upgrade=1 from_commit=d94f20300b9296f5dbe879d025a5f481ecb15011
backup_restore=1 backup_restore=1
multi_instance=0 multi_instance=0
port_already_use=0
change_url=0 change_url=0
;;; Options ;;; Options
Email= Email=

View file

@ -9,7 +9,6 @@ location __PATH__/ {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }

View file

@ -6,7 +6,7 @@
"en": "Sysadmin login session in a web browser", "en": "Sysadmin login session in a web browser",
"fr": "Session de connexion sysadmin dans un navigateur Web" "fr": "Session de connexion sysadmin dans un navigateur Web"
}, },
"version": "188~ynh1", "version": "188~ynh2",
"url": "https://cockpit-project.org/", "url": "https://cockpit-project.org/",
"upstream": { "upstream": {
"license": "LGPL-2.1-only", "license": "LGPL-2.1-only",

View file

@ -96,6 +96,7 @@ yunohost service add $app
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2 ynh_script_progression --message="Starting a systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started" ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started"
#================================================= #=================================================

View file

@ -29,7 +29,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) # Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null if ynh_exec_warn_less yunohost service status $app >/dev/null
then then
ynh_script_progression --message="Removing $app service..." --weight=1 ynh_script_progression --message="Removing $app service integration..." --weight=1
yunohost service remove $app yunohost service remove $app
fi fi

View file

@ -93,4 +93,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================
ynh_script_progression --message="Installation of $app completed" --last ynh_script_progression --message="Restoration completed for $app" --last

View file

@ -55,7 +55,7 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=2 ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config