Move python scripts out of tmux folder into update_scripts folder, adjust other parts of newznab-tmux to accommodate the change.

This commit is contained in:
Darko
2015-09-30 10:55:02 +02:00
parent dad4b5b5ed
commit 0602f5173a
40 changed files with 232 additions and 134 deletions
+3 -3
View File
@@ -199,9 +199,9 @@ function window_proxy($tmux_session, $window)
$nntpproxy = $pdo->getSetting('nntpproxy');
if ($nntpproxy === '1') {
$DIR = NN_MISC;
$nntpproxypy = $DIR . "update_scripts/nix_scripts/tmux/python/nntpproxy.py";
if (file_exists($DIR . "update_scripts/nix_scripts/tmux/python/lib/nntpproxy.conf")) {
$nntpproxyconf = $DIR . "update_scripts/nix_scripts/tmux/python/lib/nntpproxy.conf";
$nntpproxypy = $DIR . "update_scripts/python/nntpproxy.py";
if (file_exists($DIR . "update_scripts/python/lib/nntpproxy.conf")) {
$nntpproxyconf = $DIR . "update_scripts/python/lib/nntpproxy.conf";
exec("tmux new-window -t $tmux_session -n nntpproxy 'printf \"\033]2;NNTPProxy\033\" && python $nntpproxypy $nntpproxyconf'");
}
}