After updating my owncloud installation I've lost the changes I've made, so I decided to create a script to automatically fix things up.
All you need to do is create a file with the contents below (SSH to your server and then use: nano /some/path/owcloud-cast-fix.sh)
Make sure you edit the second line with the full path to your owncloud web directory.
Then execute the script with: sh /some/path/owcloud-cast-fix.sh
It will apply the fix to all files.IMPORTANT:
Your owncloud folder CANNOT be inside the owncloud web dir!!!USE THIS AT YOUR OWN RISK!!!
Code: Select all
for file in $(grep -l -R $searchterm $startdirectory)
sed -e "s/$searchterm/$replaceterm/ig" $file > /tmp/tempfile.tmp
mv /tmp/tempfile.tmp $file
echo "Fixing: " $file