use correct magic var in php entry scripts to hold script folder structure independent of call folder
fix php socket location in postinst script
This commit is contained in:
parent
635e9f009c
commit
a7790b289a
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once './src/Database.php';
|
||||
require_once './src/TMDBMovie.php';
|
||||
require_once './src/SSettings.php';
|
||||
require_once './src/VideoParser.php';
|
||||
require_once __DIR__ . '/src/Database.php';
|
||||
require_once __DIR__ . '/src/TMDBMovie.php';
|
||||
require_once __DIR__ . '/src/SSettings.php';
|
||||
require_once __DIR__ . '/src/VideoParser.php';
|
||||
|
||||
// allow UTF8 characters
|
||||
setlocale(LC_ALL, 'en_US.UTF-8');
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
require_once './src/handlers/Settings.php';
|
||||
require_once __DIR__ . '/src/handlers/Settings.php';
|
||||
|
||||
$sett = new Settings();
|
||||
$sett->handleAction();
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
include_once './src/handlers/Tags.php';
|
||||
include_once __DIR__ . '/src/handlers/Tags.php';
|
||||
|
||||
$tags = new Tags();
|
||||
$tags->handleAction();
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
include_once './src/handlers/Video.php';
|
||||
include_once __DIR__ . '/src/handlers/Video.php';
|
||||
|
||||
$video = new Video();
|
||||
$video->handleAction();
|
||||
|
@ -3,7 +3,7 @@
|
||||
ln -sf /etc/nginx/sites-available/OpenMediaCenter.conf /etc/nginx/sites-enabled/OpenMediaCenter.conf
|
||||
|
||||
# link general socket to current one
|
||||
phpsymlink="/var/run/php-fpm.sock";
|
||||
phpsymlink="/var/run/php/php-fpm.sock";
|
||||
|
||||
# create a gneral symlink to the php socket if not already existing
|
||||
if [ -L ${phpsymlink} ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user