forked from YunoHost-Apps/my_webapp_ynh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
actions.toml
32 lines (29 loc) · 1000 Bytes
/
actions.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[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
[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."