<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>15578</bug_id>
          
          <creation_ts>2008-05-08 14:09:51 +0400</creation_ts>
          <short_desc>mtx-changer не находит команду mtx</short_desc>
          <delta_ts>2008-05-12 02:26:50 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>bacula-storage</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Klimov">zver</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>real</cc>
    
    <cc>vitty</cc>
    
    <cc>vvk</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69506</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Klimov">zver</who>
    <bug_when>2008-05-08 14:09:51 +0400</bug_when>
    <thetext>При использовании скрипта /usr/share/bacula/scripts/mtx-changer юзером bacula:

[root@basalt ~]# su - -s /bin/sh -c &apos;/usr/share/bacula/scripts/mtx-changer /dev/
sg2 slots&apos; bacula
/usr/share/bacula/scripts/mtx-changer: line 215: mtx: command not found

В скрипте определяется переменая как:
MTX=mtx

можно либо сделать так:
MTX=/usr/sbin/mtx
либо задать переменную PATH
Как лучше я не знаю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69530</commentid>
    <comment_count>1</comment_count>
    <who name="Michail Yakushin">silicium</who>
    <bug_when>2008-05-08 19:11:04 +0400</bug_when>
    <thetext>На мейнтейнера</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69564</commentid>
    <comment_count>2</comment_count>
    <who name="Vladimir V. Kamarzin">vvk</who>
    <bug_when>2008-05-09 14:06:01 +0400</bug_when>
    <thetext>Кстати не понятно, почему скрипты лежат в иерархии /usr/share/ вместо /usr/{s}bin/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69568</commentid>
    <comment_count>3</comment_count>
    <who name="Mikhail Gusarov">dottedmag</who>
    <bug_when>2008-05-09 14:34:10 +0400</bug_when>
    <thetext>(In reply to comment #2)
&gt; Кстати не понятно, почему скрипты лежат в иерархии /usr/share/ вместо /usr/
{s}bin/

+1. Или /usr/share/doc/&lt;pkg&gt;/contrib, если скрипты не поддерживаются, или уж /
usr/[s]bin.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69664</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Kuznetsov">vitty</who>
    <bug_when>2008-05-12 02:26:50 +0400</bug_when>
    <thetext>fixed in 2.2.8-alt3
скрипты от storage переложены в %_sbindir
в /usr/share/bacula остались скрипты базы - не думаю что стоит их перекладывать
в %_sbindir, слишком уж название их непонятное</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>