yWeb: replace hardcoded paths (/var/httpd -> %(PUBLIC_HTTPDDIR))

Origin commit data
------------------
Branch: ni/coolstream
Commit: d5e62bd379
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-01 (Sat, 01 Oct 2016)

Origin message was:
------------------
- yWeb: replace hardcoded paths (/var/httpd -> %(PUBLIC_HTTPDDIR))

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-10-01 11:06:11 +02:00
parent 94decf1a9b
commit 313b102b0d
10 changed files with 10 additions and 9 deletions

View File

@@ -106,5 +106,6 @@ install-data-hook:
sed -i \
-e 's|%(CONFIGDIR)|$(CONFIGDIR)|g' \
-e 's|%(PLUGINDIR_VAR)|$(PLUGINDIR_VAR)|g' \
-e 's|%(PUBLIC_HTTPDDIR)|$(PUBLIC_HTTPDDIR)|g' \
;

View File

@@ -1,7 +1,7 @@
{=var-set:cancache=yPConf=}
{=include-block:Y_Blocks.txt;head=}
</head>
{=var-set:alt_httpd={=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory;/var/httpd=}=}
{=var-set:alt_httpd={=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory;%(PUBLIC_HTTPDDIR)=}=}
{=var-set:vf={=if-file-exists:{=var-get:alt_httpd=}/Y_Version.txt~{=var-get:alt_httpd=}/Y_Version.txt~Y_Version.txt=}=}
<body>
<div class="work_box">

View File

@@ -1,4 +1,4 @@
{=var-set:extension={=if-file-exists:%(CONFIGDIR)/extentions.txt~%(CONFIGDIR)/extentions.txt~{=if-file-exists:/var/httpd/extentions.txt~/var/httpd/extentions.txt~/share/tuxbox/neutrino/httpd/extentions.txt=}=}=}
{=var-set:extension={=if-file-exists:%(CONFIGDIR)/extentions.txt~%(CONFIGDIR)/extentions.txt~{=if-file-exists:%(PUBLIC_HTTPDDIR)/extentions.txt~%(PUBLIC_HTTPDDIR)/extentions.txt~/share/tuxbox/neutrino/httpd/extentions.txt=}=}=}
{=var-set:management={=if-equal:{=func:get_request_data client_addr=}~{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip;{=func:get_request_data client_addr=}=}~1~=}{=if-equal:{=func:get_request_data client_addr=}~{=ini-get:%(CONFIGDIR)/Y-Web.conf;management_ip2=}~1~=}=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/prototype.js"></script>

View File

@@ -23,7 +23,7 @@ function do_submit(){
<table border="0" class="y_form_table" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td><textarea name="extentions" id="ext" cols="90" rows="30" title="extention list">{=if-file-exists:%(CONFIGDIR)/extentions.txt~{=include:%(CONFIGDIR)/extentions.txt=}~{=if-file-exists:/var/httpd/extentions.txt~{=include:/var/httpd/extentions.txt=}~{=include:/share/tuxbox/neutrino/httpd/extentions.txt=}=}=}</textarea></td>
<td><textarea name="extentions" id="ext" cols="90" rows="30" title="extention list">{=if-file-exists:%(CONFIGDIR)/extentions.txt~{=include:%(CONFIGDIR)/extentions.txt=}~{=if-file-exists:%(PUBLIC_HTTPDDIR)/extentions.txt~{=include:%(PUBLIC_HTTPDDIR)/extentions.txt=}~{=include:/share/tuxbox/neutrino/httpd/extentions.txt=}=}=}</textarea></td>
</tr>
</table>
<br/>

View File

@@ -80,7 +80,7 @@ function vlc() {
}
</style>
</head>
{=var-set:alt_httpd={=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory;/var/httpd=}=}
{=var-set:alt_httpd={=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory;%(PUBLIC_HTTPDDIR)=}=}
{=var-set:vf={=if-file-exists:{=var-get:alt_httpd=}/Y_Version.txt~{=var-get:alt_httpd=}/Y_Version.txt~Y_Version.txt=}=}
<body>
<div class="y_menu_prim_box">

View File

@@ -50,7 +50,7 @@ function do_submit() {
</tr>
<tr>
<td>&nbsp;</td>
<td><textarea name="channels" cols="60" rows="10">{=if-file-exists:%(CONFIGDIR)/channels.txt~{=include:%(CONFIGDIR)/channels.txt=}~{=if-file-exists:/var/httpd/channels.txt~{=include:/var/httpd/channels.txt=}~{=include:/share/tuxbox/neutrino/httpd/channels.txt=}=}=}</textarea></td>
<td><textarea name="channels" cols="60" rows="10">{=if-file-exists:%(CONFIGDIR)/channels.txt~{=include:%(CONFIGDIR)/channels.txt=}~{=if-file-exists:%(PUBLIC_HTTPDDIR)/channels.txt~{=include:%(PUBLIC_HTTPDDIR)/channels.txt=}~{=include:/share/tuxbox/neutrino/httpd/channels.txt=}=}=}</textarea></td>
</tr>
</table>
<br/>

View File

@@ -19,7 +19,7 @@ yI_Version="$Revision: 1.3 $"
y_path_usrbin="/var/bin"
y_path_config="%(CONFIGDIR)"
y_path_tmp="/tmp"
y_ywebover_dir="/var/httpd"
y_ywebover_dir="%(PUBLIC_HTTPDDIR)"
y_ext_conf_dir="$y_path_config/ext"
# -----------------------------------------------------------

View File

@@ -19,7 +19,7 @@ yI_Version="$Revision: 1.4 $"
y_path_usrbin="/var/bin"
y_path_config="%(CONFIGDIR)"
y_path_tmp="/tmp"
y_ywebover_dir="/var/httpd"
y_ywebover_dir="%(PUBLIC_HTTPDDIR)"
y_ext_conf_dir="$y_path_config/ext"
# -----------------------------------------------------------

View File

@@ -19,7 +19,7 @@ yI_Version="$Revision: 1.3 $"
y_path_usrbin="/var/bin"
y_path_config="%(CONFIGDIR)"
y_path_tmp="/tmp"
y_ywebover_dir="/var/httpd"
y_ywebover_dir="%(PUBLIC_HTTPDDIR)"
y_ext_conf_dir="$y_path_config/ext"
# -----------------------------------------------------------

View File

@@ -19,7 +19,7 @@ yI_Version="$Revision: 1.4 $"
y_path_usrbin="/var/bin"
y_path_config="%(CONFIGDIR)"
y_path_tmp="/tmp"
y_ywebover_dir="/var/httpd"
y_ywebover_dir="%(PUBLIC_HTTPDDIR)"
y_ext_conf_dir="$y_path_config/ext"
# -----------------------------------------------------------