-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathiris.script
46 lines (35 loc) · 1.8 KB
/
iris.script
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// unexpire passwords for dev mode
new $namespace
set $namespace = "%SYS"
do ##class(Security.Users).UnExpireUserPasswords("*")
// service for embedded python
do ##class(Security.Services).Get("%Service_CallIn",.prop)
set prop("Enabled")=1
set prop("AutheEnabled")=48
do ##class(Security.Services).Modify("%Service_CallIn",.prop)
// create ns for dev environment
do $SYSTEM.OBJ.Load("/opt/irisapp/Installer.cls", "ck")
set vars("Namespace")="DPIPE"
set vars("DataDBPath")="/opt/dpipe/db/DATA"
set vars("CodeDBPath")="/opt/dpipe/db/CODE"
do ##class(App.Installer).CreateNamespace(.vars)
// import sample webapps, users, roles, resources
write ##class(Security.Resources).Import("/opt/irisapp/install/resources.xml")
write ##class(Security.Roles).Import("/opt/irisapp/install/roles.xml")
write ##class(Security.Users).Import("/opt/irisapp/install/users.xml")
write ##class(Security.Applications).Import("/opt/irisapp/install/webapps.xml")
set $namespace = "DPIPE"
// install ipm
set version="latest" s r=##class(%Net.HttpRequest).%New(),r.Server="pm.community.intersystems.com",r.SSLConfiguration="ISC.FeatureTracker.SSL.Config" d r.Get("/packages/zpm/"_version_"/installer"),$system.OBJ.LoadStream(r.HttpResponse.Data,"c")
zpm "enable -community"
// install DataPipe (zpm)
zpm "load -verbose /opt/irisapp/"
// modify restforms2 abstract: convert to UTF8 and HandleCorsRequest (useful for dev environment)
do $system.OBJ.Load("/opt/irisapp/src/Form/REST/Abstract.cls", "ck")
// install webterminar
zpm "install webterminal"
// auto start interop production
set production = "DataPipe.Test.Production"
set ^Ens.AutoStart=production
set ^Ens.AutoStart("StartupPriority")=1
halt