diff --git a/autopost/conf.sh b/autopost/conf.sh index a91fc41..6adf65c 100644 --- a/autopost/conf.sh +++ b/autopost/conf.sh @@ -6,8 +6,8 @@ DB_FILE="/home/$USER/autopost/base_autopost.db" DOSSIER_GLOBAL="/home/$USER/" DOSSIER_NFO="/home/$USER/autopost/mediainfo/" DOSSIER_LOGS="/home/$USER/autopost/logs/" -DOSSIER_NZB_ATTENTE="/home/$USER/ATTENTE/" -DOSSIER_NZB_FINAL="/home/$USER/FINIS/" +DOSSIER_NZB_ATTENTE="/home/$USER/autopost/ATTENTE/" +DOSSIER_NZB_FINAL="/home/$USER/autopost/FINIS/" #CONFIG FOURNISSEUR USENET DE POST NG_HOST="" diff --git a/autopost/posteur.sh b/autopost/posteur.sh index 7592dc6..c84df06 100644 --- a/autopost/posteur.sh +++ b/autopost/posteur.sh @@ -2,7 +2,7 @@ source /home/$USER/autopost/common.sh # Vérification et création des dossiers -for dossier in "$DOSSIER_NFO" "$DOSSIER_NZB_ATTENTE" "$DOSSIER_NZB_FINAL" "$DOSSIER_LOGS" +for dossier in "$DOSSIER_NFO" "$DOSSIER_NZB_ATTENTE" "$DOSSIER_NZB_FINAL" "$DOSSIER_LOGS" "tmp" do if [ ! -d "$dossier" ]; then echo -e "${ROUGE} Le dossier $dossier n'existe pas. Création... ${NORMAL}" diff --git a/autopost/server.js b/autopost/server.js index 615cc87..2c7083b 100644 --- a/autopost/server.js +++ b/autopost/server.js @@ -575,7 +575,7 @@ autopostRouter.get('/dl', (req, res) => { console.log("Tentative de téléchargement (archive 7z) :", archiveFilePath); // Utilisation du répertoire temporaire - const tmpDir = os.tmpdir(); + const tmpDir = path.join(__dirname, 'tmp'); // Le fichier extrait attendu (sans dossier interne grâce à "7z e") const extractedFilePath = path.join(tmpDir, base + '.nzb');