mirror of
https://github.com/YunoHost-Apps/yunorunner_ynh.git
synced 2024-09-03 20:36:13 +02:00
Remove backend argument
This commit is contained in:
parent
24086e9b8c
commit
f794c09af2
3 changed files with 1 additions and 12 deletions
|
@ -9,7 +9,7 @@ User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
WorkingDirectory=__INSTALL_DIR__/
|
||||||
ExecStart=__INSTALL_DIR__/venv/bin/python ./run.py
|
ExecStart=__INSTALL_DIR__/venv/bin/python ./run.py
|
||||||
Environment=YNHDEV_BACKEND=__BACKEND__
|
Environment=YNHDEV_BACKEND=lxd
|
||||||
|
|
||||||
# Sandboxing options to harden security
|
# Sandboxing options to harden security
|
||||||
# Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
# Details for these options: https://www.freedesktop.org/software/systemd/man/systemd.exec.html
|
||||||
|
|
|
@ -56,12 +56,6 @@ ram.runtime = "50M"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
default = false
|
default = false
|
||||||
|
|
||||||
[install.backend]
|
|
||||||
ask.en = "Should you use LXD or Incus (LXD support will be removed soon)"
|
|
||||||
type = "select"
|
|
||||||
choices = ["lxd"]
|
|
||||||
default = "lxd"
|
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
|
|
|
@ -62,11 +62,6 @@ if [[ -z "${cluster:-}" ]]; then
|
||||||
ynh_app_setting_set --app="$app" --key="cluster" --value="$cluster"
|
ynh_app_setting_set --app="$app" --key="cluster" --value="$cluster"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${backend:-}" ]]; then
|
|
||||||
backend=lxd
|
|
||||||
ynh_app_setting_set --app="$app" --key="backend" --value="$backend"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Values now use underscore
|
# Values now use underscore
|
||||||
if echo "$context" | grep -- -; then
|
if echo "$context" | grep -- -; then
|
||||||
context=$(echo "$context" | tr - _)
|
context=$(echo "$context" | tr - _)
|
||||||
|
|
Loading…
Reference in a new issue