FOERBICO/sb/scripts/url-prod-to-int.sh
Ludger Sicking fcd044f242 ein weiteres Helferlein
diesmal fürs Debugging auf dem Webserver
2025-01-27 16:21:14 +01:00

17 lines
531 B
Bash
Executable file

#!/bin/bash
set -e
# script im root dir ausführen
working_directory=$(basename $(pwd))
if [ "$working_directory" != "FOERBICO" ]; then
echo "not in root dir 'FOERBICO'"
exit 1
fi
find sb/public -type f | while read FILE ;
do
sed -i -s -E 's|http://oer.community/|http://int.oer.community/|g' "$FILE"
sed -i -s -E 's|https://oer.community/|https://int.oer.community/|g' "$FILE"
#sed -i -s -E 's|https://oer.community/|https://xxx.oer.community/|g' "$FILE"
done
#TODO / FIXME: Basis-Ordner dynamsich; als Parameter