mirror of
https://github.com/YunoHost-Apps/incus_ynh.git
synced 2024-09-03 19:26:15 +02:00
Add systemd services, finish resources
This commit is contained in:
parent
51b421908e
commit
0cf9812693
2 changed files with 8 additions and 8 deletions
|
@ -35,13 +35,14 @@ ram.runtime = "50M"
|
|||
|
||||
[resources]
|
||||
|
||||
[resources.system_user]
|
||||
# Do NOT handle system_user, deb package will
|
||||
# [resources.system_user]
|
||||
|
||||
[resources.install_dir]
|
||||
[resources.data_dir]
|
||||
# TODO: incus actual data dir
|
||||
|
||||
[resources.permissions]
|
||||
# Do NOT handle /var/lib, deb package will
|
||||
# [resources.data_dir]
|
||||
# dir = "/var/lib/incus"
|
||||
|
||||
[resources.apt.extras.incus]
|
||||
repo = "https://pkgs.zabbly.com/incus/stable bullseye main"
|
||||
|
|
|
@ -17,11 +17,10 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding system configurations related to $app..."
|
||||
|
||||
# Create a dedicated NGINX config using the conf/nginx.conf template
|
||||
# ynh_add_nginx_config
|
||||
|
||||
# Use logrotate to manage application logfile(s)
|
||||
# ynh_use_logrotate
|
||||
ynh_use_logrotate --logfile="/var/log/incus/incusd.log"
|
||||
|
||||
yunohost service add "$app" --description="Incus system container and virtual machine manager" --log="/var/log/incus/incusd.log"
|
||||
|
||||
#=================================================
|
||||
# APP INITIAL CONFIGURATION
|
||||
|
|
Loading…
Add table
Reference in a new issue