FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NodeODM/run_gpu_intel.sh at master · AutoModality/NodeODM · GitHub
AutoModality
NodeODM
Repository navigation
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
NodeODM
/
run_gpu_intel.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
15 lines (12 loc) · 456 Bytes
Breadcrumbs
NodeODM
/
run_gpu_intel.sh
Copy path
File metadata and controls
executable file
·
15 lines (12 loc) · 456 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!
/usr/bin/env bash
if
[
!
-z
"
${RENDER_GROUP_ID}
"
]
;
then
if
[
"
${RENDER_GROUP_ID}
"
-ne
0 ]
;
then
groupadd -g
"
${RENDER_GROUP_ID}
"
render
usermod -aG render odm
fi
fi
while
IFS=
'
=
'
read
-r name value
;
do
echo
"
export
${name}
=
\"
${value}
\"
"
>>
/home/odm/env
done
<
<(
env
|
grep -v
"
HOME
"
)
chown odm:odm /home/odm/env
su - odm -c
"
source /home/odm/env; cd /var/www; echo
$WO_DEFAULT_NODES
; /usr/bin/node /var/www/index.js
$@
"
Back
|
FazBrowse Home
|
New Git URL