mirror of
https://github.com/YunoHost-Apps/cockpit_ynh.git
synced 2024-09-03 18:16:26 +02:00
commit
19a879539b
7 changed files with 30 additions and 6 deletions
|
@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Cockpit is an interactive server admin interface. It is easy to use and very lightweight. Cockpit interacts directly with the operating system from a real Linux session in a browser.
|
Cockpit is an interactive server admin interface. It is easy to use and very lightweight. Cockpit interacts directly with the operating system from a real Linux session in a browser.
|
||||||
|
|
||||||
**Shipped version:** 239~ynh1
|
**Shipped version:** 239~ynh2
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
|
|
||||||
Cockpit est une interface d'administration de serveur interactive. Il est facile à utiliser et très léger. Cockpit interagit directement avec le système d'exploitation à partir d'une vraie session Linux dans un navigateur.
|
Cockpit est une interface d'administration de serveur interactive. Il est facile à utiliser et très léger. Cockpit interagit directement avec le système d'exploitation à partir d'une vraie session Linux dans un navigateur.
|
||||||
|
|
||||||
**Version incluse :** 239~ynh1
|
**Version incluse :** 239~ynh2
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Cockpit"
|
||||||
description.en = "Sysadmin login session in a web browser"
|
description.en = "Sysadmin login session in a web browser"
|
||||||
description.fr = "Session de connexion sysadmin dans un navigateur Web"
|
description.fr = "Session de connexion sysadmin dans un navigateur Web"
|
||||||
|
|
||||||
version = "239~ynh1"
|
version = "239~ynh2"
|
||||||
|
|
||||||
maintainers = []
|
maintainers = []
|
||||||
|
|
||||||
|
@ -35,6 +35,10 @@ ram.runtime = "50M"
|
||||||
type = "path"
|
type = "path"
|
||||||
default = "/monitor"
|
default = "/monitor"
|
||||||
|
|
||||||
|
[install.init_main_permission]
|
||||||
|
type = "group"
|
||||||
|
default = "visitors"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
|
|
|
@ -30,12 +30,17 @@ ynh_change_url_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE A CONFIG FILE
|
# UPDATE A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Fixing up permissions..." --weight=1
|
||||||
|
|
||||||
|
usermod -a -G cockpit cockpit-ws
|
||||||
|
usermod -a -G cockpit cockpit-wsinstance
|
||||||
|
|
||||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/cockpit.conf" --destination="/etc/cockpit/cockpit.conf"
|
ynh_add_config --template="../conf/cockpit.conf" --destination="/etc/cockpit/cockpit.conf"
|
||||||
|
|
||||||
chmod 650 "/etc/cockpit/cockpit.conf"
|
chmod 650 "/etc/cockpit/cockpit.conf"
|
||||||
chown root:$app-ws "/etc/cockpit/cockpit.conf"
|
chown root:$app "/etc/cockpit/cockpit.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -22,6 +22,11 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADD A CONFIGURATION
|
# ADD A CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Fixing up permissions..." --weight=1
|
||||||
|
|
||||||
|
usermod -a -G cockpit cockpit-ws
|
||||||
|
usermod -a -G cockpit cockpit-wsinstance
|
||||||
|
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_replace_string --match_string="ListenStream=.*" --replace_string="ListenStream=$port" --target_file="/lib/systemd/system/cockpit.socket"
|
ynh_replace_string --match_string="ListenStream=.*" --replace_string="ListenStream=$port" --target_file="/lib/systemd/system/cockpit.socket"
|
||||||
|
@ -31,7 +36,7 @@ systemctl restart $app.socket
|
||||||
ynh_add_config --template="../conf/cockpit.conf" --destination="/etc/cockpit/cockpit.conf"
|
ynh_add_config --template="../conf/cockpit.conf" --destination="/etc/cockpit/cockpit.conf"
|
||||||
|
|
||||||
chmod 650 "/etc/cockpit/cockpit.conf"
|
chmod 650 "/etc/cockpit/cockpit.conf"
|
||||||
chown root:$app-ws "/etc/cockpit/cockpit.conf"
|
chown root:$app "/etc/cockpit/cockpit.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -13,6 +13,11 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE VARIOUS FILES
|
# RESTORE VARIOUS FILES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Fixing up permissions..." --weight=1
|
||||||
|
|
||||||
|
usermod -a -G cockpit cockpit-ws
|
||||||
|
usermod -a -G cockpit cockpit-wsinstance
|
||||||
|
|
||||||
ynh_script_progression --message="Restoring various files..." --weight=1
|
ynh_script_progression --message="Restoring various files..." --weight=1
|
||||||
|
|
||||||
ynh_replace_string --match_string="ListenStream=.*" --replace_string="ListenStream=$port" --target_file="/lib/systemd/system/cockpit.socket"
|
ynh_replace_string --match_string="ListenStream=.*" --replace_string="ListenStream=$port" --target_file="/lib/systemd/system/cockpit.socket"
|
||||||
|
|
|
@ -37,6 +37,11 @@ yunohost service add $app --description="Sysadmin login session in a web browser
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE A CONFIG FILE
|
# UPDATE A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Fixing up permissions..." --weight=1
|
||||||
|
|
||||||
|
usermod -a -G cockpit cockpit-ws
|
||||||
|
usermod -a -G cockpit cockpit-wsinstance
|
||||||
|
|
||||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_replace_string --match_string="ListenStream=.*" --replace_string="ListenStream=$port" --target_file="/lib/systemd/system/cockpit.socket"
|
ynh_replace_string --match_string="ListenStream=.*" --replace_string="ListenStream=$port" --target_file="/lib/systemd/system/cockpit.socket"
|
||||||
|
@ -46,7 +51,7 @@ systemctl restart $app.socket
|
||||||
ynh_add_config --template="../conf/cockpit.conf" --destination="/etc/cockpit/cockpit.conf"
|
ynh_add_config --template="../conf/cockpit.conf" --destination="/etc/cockpit/cockpit.conf"
|
||||||
|
|
||||||
chmod 650 "/etc/cockpit/cockpit.conf"
|
chmod 650 "/etc/cockpit/cockpit.conf"
|
||||||
chown root:$app-ws "/etc/cockpit/cockpit.conf"
|
chown root:$app "/etc/cockpit/cockpit.conf"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Reference in a new issue