make scandir independent of calldirectory of reindex script
remove log after postinst reindex
This commit is contained in:
parent
a7790b289a
commit
362484f92c
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
@ -33,3 +33,4 @@ systemctl restart nginx
|
||||
|
||||
# trigger a movie reindex
|
||||
php /var/www/openmediacenter/api/extractvideopreviews.php
|
||||
rm /tmp/output.log
|
||||
|
Loading…
Reference in New Issue
Block a user