Updated fix_files.sh to copy needed files for new scripts

This commit is contained in:
Darko
2013-07-24 09:53:45 +02:00
parent f38d4d1bd0
commit 34f352b9fc
+5 -1
View File
@@ -38,7 +38,6 @@ fi
if [[ $EN_IMDB == "true" ]]; then
echo "edit movie language"
$SED -i -e 's/akas.imdb/www.imdb/g' $NEWZPATH/www/lib/movie.php
$SED -i -e 's/akas.imdb/www.imdb/g' $TESTING_PATH/update_parsing.php
$SED -i -e 's/curl_setopt($ch, CURLOPT_URL, $url);/curl_setopt($ch, CURLOPT_URL, $url);\
$header[] = "Accept-Language: en-us";\
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);/' $NEWZPATH/www/lib/util.php
@@ -49,6 +48,11 @@ if [[ $KEVIN_SAFER == "true" ]] || [[ $PARSING_MOD == "true" ]]; then
cd $DIR"/kevin123"
cp -frv * $NEWZPATH/www/lib/
fi
#copy needed files for hash_decrypt and fixReleaseNames scripts
if [[ $HASH == "true"]] || [[ $FIXRELEASES == "true" ]]; then
cd $DIR"/test/files to copy/www/lib"
cp -frv * $NEWZPATH/www/lib/
fi
#set user/group to www
echo "Fixing permisions, this can take some time if you have a large set of releases"