Skip to content

Commit 4472c24

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
fixes with unexpire passwords
1 parent d060345 commit 4472c24

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM $IMAGE
88
USER root
99

1010
WORKDIR /opt/app
11-
RUN chown irisowner /opt/app
11+
RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/app
1212

1313
USER irisowner
1414

@@ -19,6 +19,7 @@ COPY ./src/cls ./src/cls
1919

2020
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
2121
/bin/echo -e "sys\nsys\n" \
22+
" Do ##class(Security.Users).UnExpireUserPasswords(\"*\")\n" \
2223
" Do \$system.OBJ.Load(\"/opt/app/Installer.cls\",\"ck\")\n" \
2324
" Set sc = ##class(App.Installer).setup(, 3)\n" \
2425
" If 'sc do \$zu(4, \$JOB, 1)\n" \

Dockerfile-20193

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ COPY ./src/cls ./src/cls
1919

2020
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
2121
/bin/echo -e "sys\nsys\n" \
22+
" Do ##class(Security.Users).UnExpireUserPasswords(\"*\")\n" \
2223
" Do \$system.OBJ.Load(\"/opt/app/Installer.cls\",\"ck\")\n" \
2324
" Set sc = ##class(App.Installer).setup(, 3)\n" \
2425
" If 'sc do \$zu(4, \$JOB, 1)\n" \

Dockerfile-zpm

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ RUN mkdir -p /tmp/deps \
2323
RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
2424
/bin/echo -e "sys\nsys\n" \
2525
" Do ##class(Security.Users).UnExpireUserPasswords(\"*\")\n" \
26-
" Do ##class(Security.Users).AddRoles(\"admin\", \"%ALL\")\n" \
27-
" Do ##class(Security.System).Get(,.p)\n" \
28-
" Set p(\"AutheEnabled\")=\$zb(p(\"AutheEnabled\"),16,7)\n" \
29-
" Do ##class(Security.System).Modify(,.p)\n" \
3026
" Do \$system.OBJ.Load(\"/tmp/deps/zpm.xml\", \"ck\")" \
3127
" Do \$system.OBJ.Load(\"/opt/app/Installer.cls\",\"ck\")\n" \
3228
" Set sc = ##class(App.Installer).setup(, 3)\n" \

0 commit comments

Comments
 (0)