make scandir independent of calldirectory of reindex script
remove log after postinst reindex
This commit is contained in:
		@@ -85,4 +85,5 @@ deploy_test1:
 | 
				
			|||||||
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
 | 
					    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
 | 
				
			||||||
    - scp deb/OpenMediaCenter-*.deb root@192.168.0.42:/tmp/
 | 
					    - 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"
 | 
					    - 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();
 | 
					$sett = new SSettings();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// load video path from settings
 | 
					// load video path from settings
 | 
				
			||||||
$scandir = "../" . $sett->getVideoPath();
 | 
					$scandir = __DIR__ . "/../" . $sett->getVideoPath();
 | 
				
			||||||
$vp->extractVideos($scandir);
 | 
					$vp->extractVideos($scandir);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,3 +33,4 @@ systemctl restart nginx
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# trigger a movie reindex
 | 
					# trigger a movie reindex
 | 
				
			||||||
php /var/www/openmediacenter/api/extractvideopreviews.php
 | 
					php /var/www/openmediacenter/api/extractvideopreviews.php
 | 
				
			||||||
 | 
					rm /tmp/output.log
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user