make scandir independent of calldirectory of reindex script

remove log after postinst reindex
This commit is contained in:
Lukas Heiligenbrunner 2020-10-27 12:48:26 +01:00
parent a7790b289a
commit 362484f92c
3 changed files with 3 additions and 1 deletions

View File

@ -85,4 +85,5 @@ deploy_test1:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- scp deb/OpenMediaCenter-*.deb root@192.168.0.42:/tmp/
- ssh root@192.168.0.42 "DEBIAN_FRONTEND=noninteractive apt-get --reinstall -y -qq install /tmp/OpenMediaCenter-*.deb && rm /tmp/OpenMediaCenter-*.deb"
allow_failure: true

View File

@ -14,5 +14,5 @@ $vp->writeLog("starting extraction!!\n");
$sett = new SSettings();
// load video path from settings
$scandir = "../" . $sett->getVideoPath();
$scandir = __DIR__ . "/../" . $sett->getVideoPath();
$vp->extractVideos($scandir);

View File

@ -33,3 +33,4 @@ systemctl restart nginx
# trigger a movie reindex
php /var/www/openmediacenter/api/extractvideopreviews.php
rm /tmp/output.log