File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
export HOME=" /hab/svc/chime/config"
3
3
# export the parameters file path
4
- export PARAMETERS=" ${pkg_prefix } /defaults/webapp.cfg"
4
+ export PARAMETERS=" {{pkg.path} }/defaults/webapp.cfg"
5
5
cd " /hab/svc/chime"
6
6
7
7
if [ " $( whoami) " = " root" ]; then
8
8
exec chpst \
9
9
-U root:hab \
10
10
-u root:hab \
11
- streamlit run " {{pkg.path}}/app .py" 2>&1
11
+ streamlit run " {{pkg.path}}/st_app .py" 2>&1
12
12
else
13
- exec streamlit run " {{pkg.path}}/app .py" 2>&1
13
+ exec streamlit run " {{pkg.path}}/st_app .py" 2>&1
14
14
fi
Original file line number Diff line number Diff line change @@ -66,8 +66,10 @@ do_build() {
66
66
}
67
67
68
68
do_install () {
69
+ mkdir " ${pkg_prefix} /defaults/"
69
70
cp -pr ${PLAN_CONTEXT} /../src/* " ${pkg_prefix} /"
70
- cp -pr ${PLAN_CONTEXT} /../deafults/webapp.cfg " ${pkg_prefix} /defaults/"
71
+ cp -pr ${PLAN_CONTEXT} /../st_app.py " ${pkg_prefix} /"
72
+ cp -pr ${PLAN_CONTEXT} /../defaults/webapp.cfg " ${pkg_prefix} /defaults/"
71
73
return $?
72
74
}
73
75
You can’t perform that action at this time.
0 commit comments