Commit a93ac281 authored by Nathalie Furmento's avatar Nathalie Furmento

scripts/createWebServer.sh: modify source page along with the creation of the redirection page

parent aeb06614
Pipeline #160355 passed with stages
in 1 minute and 29 seconds
......@@ -48,8 +48,10 @@ updateFileLinks()
case "$x" in
*pdf) for f in $(grep -rsl $x public) ; do sed -i 's;href="'$x'";href="'$dst'";g' $f ; done ;;
*gz) for f in $(grep -rsl $x public) ; do sed -i 's;href="'$x'";href="'$dst'";g' $f ; done ;;
*/) createRedirectDir $x "$dst" ;;
*) mkdir -p public/$(dirname $x) && createRedirectFile $x "$dst" ;;
*/) for f in $(grep -rsl $x public) ; do sed -i 's;href="'$x'";href="'$dst'";g' $f ; done
createRedirectDir $x "$dst" ;;
*) for f in $(grep -rsl $x public) ; do sed -i 's;href="'$x'";href="'$dst'";g' $f ; done
mkdir -p public/$(dirname $x) && createRedirectFile $x "$dst" ;;
esac
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment