Line 0
Link Here
|
|
|
1 |
--- plexWatch.pl.orig 2016-03-26 19:12:31 UTC |
2 |
+++ plexWatch.pl |
3 |
@@ -42,15 +42,14 @@ if ($^O ne 'MSWin32') { |
4 |
## end |
5 |
|
6 |
## load config file |
7 |
-my $dirname = dirname(__FILE__); |
8 |
-if (!-e $dirname .'/config.pl') { |
9 |
- my $msg = "** missing file $dirname/config.pl. Did you move edit config.pl-dist and copy to config.pl?"; |
10 |
+if (!-e '%%ETCDIR%%/config.pl') { |
11 |
+ my $msg = "** missing file %%ETCDIR%%/config.pl. Did you move edit config.pl-dist and copy to config.pl?"; |
12 |
&DebugLog($msg,1) if $msg; |
13 |
exit; |
14 |
} |
15 |
our ($data_dir, $server, $port, $appname, $user_display, $alert_format, $notify, $push_titles, $backup_opts, $myPlex_user, $myPlex_pass, $server_log, $log_client_ip, $debug_logging, $watched_show_completed, $watched_grouping_maxhr, $count_paused, $inc_non_library_content, @exclude_library_ids); |
16 |
my @config_vars = ("data_dir", "server", "port", "appname", "user_display", "alert_format", "notify", "push_titles", "backup_opts", "myPlex_user", "myPlex_pass", "server_log", "log_client_ip", "debug_logging", "watched_show_completed", "watched_grouping_maxhr", "count_paused", "exclude_library_ids"); |
17 |
-do $dirname.'/config.pl'; |
18 |
+do '%%ETCDIR%%/config.pl'; |
19 |
|
20 |
if (!$data_dir || !$server || !$port || !$appname || !$alert_format || !$notify) { |
21 |
## TODO - make this information a little more useful! |