@@ -6,30 +6,43 @@ M_HOME=/opt/mastodon
66APP=${M_HOME} /app
77CONFIG=${M_HOME} /config
88LIB=${M_HOME} /lib
9- GFINGER=${M_HOME} /vendor/bundle/ruby/2.6.0/gems/goldfinger-2.1.1
10- OSTATUS=${M_HOME} /vendor/bundle/ruby/2.6.0/gems/ostatus2-2.0.3
11-
12- mkdir -p temp
13- # echo "find ${M_HOME} -type f -name "*.rb" -print | xargs grep -rn 'https'" >> temp/find.sh
14- # echo "find ${APP} -type f -name "*.rb" -print | xargs grep -rn 'https'" >> temp/find.sh
15- # echo "find ${CONFIG} -type f -name "*.rb" -print | xargs grep -rn 'https'" >> temp/find.sh
16- # echo "find ${LIB} -type f -name "*.rb" -print | xargs grep -rn 'https'" >> temp/find.sh
17- echo " find ${APP} -type f -print | xargs grep -rn 'https'" >> temp/find.sh
18- echo " find ${CONFIG} -type f -print | xargs grep -rn 'https'" >> temp/find.sh
19- echo " find ${LIB} -type f -print | xargs grep -rn 'https'" >> temp/find.sh
20-
21- echo " find ${GFINGER} -type f -name " * .rb" -print | xargs grep -rn 'https'" >> temp/find.sh
22- echo " find ${OSTATUS} -type f -name " * .rb" -print | xargs grep -rn 'https'" >> temp/find.sh
23-
24- echo " find ${APP} -type f -name " * .rb" -print | xargs grep -rn 'LOCAL_HTTPS'" >> temp/find.sh
25- echo " find ${CONFIG} -type f -name " * .rb" -print | xargs grep -rn 'LOCAL_HTTPS'" >> temp/find.sh
26- echo " find ${LIB} -type f -name " * .rb" -print | xargs grep -rn 'LOCAL_HTTPS'" >> temp/find.sh
9+ # GFINGER=${M_HOME}/vendor/bundle/ruby/2.6.0/gems/goldfinger-2.1.1
10+ # OSTATUS=${M_HOME}/vendor/bundle/ruby/2.6.0/gems/ostatus2-2.0.3
11+
12+ # echo "ls ${M_HOME}/vendor/bundle/ruby/2.6.0/gems/" >> temp/find.sh
13+
14+ mkdir -p tmp
15+ echo " rm -f /tmp/log" >> tmp/find.sh
16+ echo " echo 'GREP for https +*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+'" >> tmp/find.sh
17+ echo " find ${M_HOME} \
18+ -type d -name 'vendor' -prune -or \
19+ -type d -name 'spec' -prune -or \
20+ -type f -name '*.rb' -print \
21+ | xargs grep 'https' >> /tmp/log" >> tmp/find.sh
22+ echo " cat /tmp/log | \
23+ grep -v 'http https' | \
24+ grep -v 'https?' | \
25+ grep -v \" 'http://', 'https://'\" | \
26+ grep -v -P 'https://[a-z]+.*'" >> tmp/find.sh
27+
28+ echo " rm -f /tmp/log" >> tmp/find.sh
29+ echo " echo 'GREP for LOCAL_HTTPS +*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+'" >> tmp/find.sh
30+ echo " find ${M_HOME} \
31+ -type d -name 'vendor' -prune -or \
32+ -type d -name 'spec' -prune -or \
33+ -type f -name '*.rb' -print \
34+ | xargs grep 'LOCAL_HTTPS' >> /tmp/log" >> tmp/find.sh
35+ echo " cat /tmp/log | \
36+ grep -v 'http https' | \
37+ grep -v 'https?' | \
38+ grep -v \" 'http://', 'https://'\" | \
39+ grep -v -P 'https://[a-z]+.*'" >> tmp/find.sh
2740
2841docker pull tootsuite/mastodon
2942docker run --rm -it \
30- -v ` pwd` /temp :/temp:rw \
43+ -v ` pwd` /tmp :/temp:rw \
3144 tootsuite/mastodon \
3245 bash /temp/find.sh
3346
34- rm -r temp
47+ rm -r tmp
3548
0 commit comments