From 34f352b9fc6421bf8caa81cf6589e2b3e5323fe8 Mon Sep 17 00:00:00 2001 From: Darko Date: Wed, 24 Jul 2013 09:53:45 +0200 Subject: [PATCH] Updated fix_files.sh to copy needed files for new scripts --- scripts/fix_files.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/fix_files.sh b/scripts/fix_files.sh index 18aa866ef..92579a5be 100755 --- a/scripts/fix_files.sh +++ b/scripts/fix_files.sh @@ -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"