File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ setup_R_rstudio() {
24
24
&& echo " www-verify-user-agent=0" >> /etc/rstudio/rserver.conf \
25
25
&& echo " database-config-file=/etc/rstudio/db.conf" >> /etc/rstudio/rserver.conf \
26
26
&& echo " provider=sqlite" >> /etc/rstudio/db.conf \
27
- && echo " directory=/etc/rstudio/" >> /etc/rstudio/db.conf ;
27
+ && echo " directory=/var/run/rstudio-server/" >> /etc/rstudio/db.conf \
28
+ && echo " [*]" > /etc/rstudio/logging.conf \
29
+ && echo " log-dir=/var/log" >> /etc/rstudio/logging.conf ;
28
30
29
31
type rstudio-server && echo " @ Version of rstudio-server: $( rstudio-server version) " || return -1 ;
30
32
}
@@ -37,8 +39,9 @@ setup_R_rshiny() {
37
39
&& curl -sL -o /tmp/rshiny.deb ${RSHINY_URL} \
38
40
&& dpkg -i /tmp/rshiny.deb \
39
41
&& sed -i " s/run_as shiny;/run_as root;/g" /etc/shiny-server/shiny-server.conf \
40
- && sed -i " s/3838/8888/g" /etc/shiny-server/shiny-server.conf \
41
- && printf " USER=root exec shiny-server" > /usr/local/bin/start-shiny-server.sh \
42
+ && sed -i " s/srv/root/g" /etc/shiny-server/shiny-server.conf \
43
+ && printf ' #!/bin/bash\n' > /usr/local/bin/start-shiny-server.sh \
44
+ && printf ' USER=root exec shiny-server\n' >> /usr/local/bin/start-shiny-server.sh \
42
45
&& chmod u+x /usr/local/bin/start-shiny-server.sh
43
46
44
47
# Remove shiny's pandoc and pandoc-proc to reduce size if they are already installed in the jpy-latex step.
You can’t perform that action at this time.
0 commit comments