mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
47 lines
1.4 KiB
TOML
47 lines
1.4 KiB
TOML
[sftp]
|
|
name = "Enable or disable the sftp access"
|
|
command = "/bin/bash scripts/actions/sftp"
|
|
# user = "root" # optional
|
|
# cwd = "/" # optional
|
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
|
accepted_return_codes = [0]
|
|
description = "Enable or disable the sftp access."
|
|
|
|
[sftp.arguments]
|
|
[sftp.arguments.with_sftp]
|
|
type = "boolean"
|
|
ask = "Do you need a SFTP access?"
|
|
default = true
|
|
|
|
[public_private]
|
|
name = "Move to public or private"
|
|
command = "/bin/bash scripts/actions/public_private"
|
|
# user = "root" # optional
|
|
# cwd = "/" # optional
|
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
|
accepted_return_codes = [0]
|
|
description = "Change the public access of the app."
|
|
|
|
[public_private.arguments]
|
|
[public_private.arguments.is_public]
|
|
type = "boolean"
|
|
ask = "Is it a public app ?"
|
|
default = true
|
|
|
|
[create_database]
|
|
name = "Create a database"
|
|
command = "/bin/bash scripts/actions/create_database"
|
|
# user = "root" # optional
|
|
# cwd = "/" # optional
|
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
|
accepted_return_codes = [0]
|
|
description = "Create a database or replace a previous one."
|
|
|
|
[remove_database]
|
|
name = "Remove a database"
|
|
command = "/bin/bash scripts/actions/remove_database"
|
|
# user = "root" # optional
|
|
# cwd = "/" # optional
|
|
# accepted_return_codes = [0, 1, 2, 3] # optional
|
|
accepted_return_codes = [0]
|
|
description = "Remove the current database."
|