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:
Lukas Heiligenbrunner 2020-10-26 20:59:48 +01:00
parent 635e9f009c
commit a7790b289a
5 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,8 @@
<?php <?php
require_once './src/Database.php'; require_once __DIR__ . '/src/Database.php';
require_once './src/TMDBMovie.php'; require_once __DIR__ . '/src/TMDBMovie.php';
require_once './src/SSettings.php'; require_once __DIR__ . '/src/SSettings.php';
require_once './src/VideoParser.php'; require_once __DIR__ . '/src/VideoParser.php';
// allow UTF8 characters // allow UTF8 characters
setlocale(LC_ALL, 'en_US.UTF-8'); setlocale(LC_ALL, 'en_US.UTF-8');

View File

@ -1,5 +1,5 @@
<?php <?php
require_once './src/handlers/Settings.php'; require_once __DIR__ . '/src/handlers/Settings.php';
$sett = new Settings(); $sett = new Settings();
$sett->handleAction(); $sett->handleAction();

View File

@ -1,5 +1,5 @@
<?php <?php
include_once './src/handlers/Tags.php'; include_once __DIR__ . '/src/handlers/Tags.php';
$tags = new Tags(); $tags = new Tags();
$tags->handleAction(); $tags->handleAction();

View File

@ -1,5 +1,5 @@
<?php <?php
include_once './src/handlers/Video.php'; include_once __DIR__ . '/src/handlers/Video.php';
$video = new Video(); $video = new Video();
$video->handleAction(); $video->handleAction();

View File

@ -3,7 +3,7 @@
ln -sf /etc/nginx/sites-available/OpenMediaCenter.conf /etc/nginx/sites-enabled/OpenMediaCenter.conf ln -sf /etc/nginx/sites-available/OpenMediaCenter.conf /etc/nginx/sites-enabled/OpenMediaCenter.conf
# link general socket to current one # 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 # create a gneral symlink to the php socket if not already existing
if [ -L ${phpsymlink} ] ; then if [ -L ${phpsymlink} ] ; then