CR/LF to LF in script files

This commit is contained in:
Rick Falkvinge
2014-09-11 15:33:13 +02:00
parent bcf39b9d7b
commit 40b2c1215a
+5 -1
View File
@@ -86,7 +86,7 @@ if [ "$COPYFILES" == "yes" ]; then
fi
if [ "$1" == "frontend" ]; then
echo "moving user-configurable files to /etc/swarmops/..."
echo "Moving user-configurable files to /etc/swarmops/..."
mkdir -p etc/swarmops
mv $DEPLOYDIR/$TARGETDIR/machineKey.config etc/swarmops/.
sed -i 's/\"machineKey.config\"/\"..\/..\/..\/..\/etc\/swarmops\/machineKey.config\"/g' $DEPLOYDIR/$TARGETDIR/web.config
@@ -123,6 +123,10 @@ else
fi
fi
echo "Converting possible CRLF line endings in scripts to LF-only..."
dos2unix DEBIAN/*
dos2unix etc/init.d/*
echo "Setting build number ($(cat ../$BUILDIDSOURCE | tr -d ' \r'))..."
sed -i "s/--BuildNumber--/$(cat ../$BUILDIDSOURCE | tr -d ' \r')/" DEBIAN/control