File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 3
3
# errors shouldn't cause script to exit
4
4
set +e
5
5
6
+ # install psutil
7
+ METRICS_DIR=${CMAKE_INSTALL_PREFIX} /shiny-server/ext/metrics
8
+ LOCAL_PACKAGES=$METRICS_DIR /local-packages
9
+ mkdir -p $LOCAL_PACKAGES
10
+ sudo bash << EOF
11
+ cd $METRICS_DIR /external/psutil
12
+ PYTHONPATH=$LOCAL_PACKAGES python setup.py install --install-purelib=$LOCAL_PACKAGES --install-platlib=$LOCAL_PACKAGES > /dev/null
13
+ EOF
14
+
6
15
sudo ln -f -s " ${CMAKE_INSTALL_PREFIX} /shiny-server/bin/shiny-server" /usr/bin/shiny-server
7
16
# See if "shiny" user exists
8
17
if id -u shiny > /dev/null 2>&1 ;
Original file line number Diff line number Diff line change 3
3
# errors shouldn't cause script to exit
4
4
set +e
5
5
6
+ # Install psutil
7
+ METRICS_DIR=${CMAKE_INSTALL_PREFIX} /shiny-server/ext/metrics
8
+ LOCAL_PACKAGES=$METRICS_DIR /local-packages
9
+ mkdir -p $LOCAL_PACKAGES
10
+ cd $METRICS_DIR /external/psutil
11
+ PYTHONPATH=$LOCAL_PACKAGES python setup.py install --install-purelib=$LOCAL_PACKAGES --install-platlib=$LOCAL_PACKAGES > /dev/null
12
+
6
13
sudo ln -f -s " ${CMAKE_INSTALL_PREFIX} /shiny-server/bin/shiny-server" /usr/bin/shiny-server
7
14
# See if "shiny" user exists
8
15
if id -u shiny > /dev/null 2>&1 ;
You can’t perform that action at this time.
0 commit comments