generated from intersystems-community/intersystems-iris-dev-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.script
More file actions
24 lines (21 loc) · 729 Bytes
/
setup.script
File metadata and controls
24 lines (21 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
zn "%SYS"
// Cria a aplicação web /m5k3t
Set props("AutheEnabled") = 64
Set props("NameSpace") = "IRISAPP"
Set props("Description") = "M-U5K-3T Frontend"
Set props("Path") = "/usr/irissys/csp/IRISAPP"
Set props("ServeFiles") = 2
Set props("Recurse") = 1
Set props("CookiePath") = "/m5k3t/"
Set props("MatchRoles") = ":%DB_IRISAPP"
Set props("IsNameSpaceDefault") = 0
// Tenta criar, se já existir, apenas atualiza
Set status = ##class(Security.Applications).Exists("/m5k3t")
If status {
Do ##class(Security.Applications).Modify("/m5k3t", .props)
Write !, "✓ Aplicação /m5k3t atualizada"
} Else {
Do ##class(Security.Applications).Create("/m5k3t", .props)
Write !, "✓ Aplicação /m5k3t criada"
}
halt