Skip to content

Commit 5fff32b

Browse files
authored
update shiny cfg (#26)
1 parent bb6ee09 commit 5fff32b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docker_devbox/work/script-devbox-rstudio.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ setup_R_rstudio() {
2424
&& echo "www-verify-user-agent=0">> /etc/rstudio/rserver.conf \
2525
&& echo "database-config-file=/etc/rstudio/db.conf" >> /etc/rstudio/rserver.conf \
2626
&& 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 ;
2830

2931
type rstudio-server && echo "@ Version of rstudio-server: $(rstudio-server version)" || return -1 ;
3032
}
@@ -37,8 +39,9 @@ setup_R_rshiny() {
3739
&& curl -sL -o /tmp/rshiny.deb ${RSHINY_URL} \
3840
&& dpkg -i /tmp/rshiny.deb \
3941
&& 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 \
4245
&& chmod u+x /usr/local/bin/start-shiny-server.sh
4346

4447
# Remove shiny's pandoc and pandoc-proc to reduce size if they are already installed in the jpy-latex step.

0 commit comments

Comments
 (0)