modify scripts to make it run on prod

This commit is contained in:
Kayn Ty 2021-03-27 09:13:03 +01:00
parent c0f2f4d225
commit b618dfe7c3
3 changed files with 8 additions and 3 deletions

4
info.php Normal file
View File

@ -0,0 +1,4 @@
<?php
echo exec('website/test.sh');

View File

@ -33,10 +33,10 @@ include( '_head.php' );
$uniqid = time();
# exemple url https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d
// # exemple url https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d
// exec( './youtube-dl.sh uniqueid_facho https://peertube.cipherbliss.com/videos/watch/b88a9568-517c-4a49-ab07-75c79323a825', $output, $result );
exec( './youtube-dl.sh uniqueid_facho https://peertube.cipherbliss.com/videos/watch/b88a9568-517c-4a49-ab07-75c79323a825', $output, $result );
// exec( '.'.$old . '/test.sh ' . $uniqid . ' ' . $url, $output, $result );
echo "<br/> résultat du script. <br>";

View File

@ -1,10 +1,11 @@
#!/bin/bash
UNIQID=$1
mkdir -p ../input/ydl
rm -rf ../input/ydl/$UNIQID.mp3
rm -rf ../input/ydl/$UNIQID
UNIQID=$1
URL=$2
OUTPUT="../input/ydl/$UNIQID.mp3"