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

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

    <bug>
          <bug_id>54512</bug_id>
          
          <creation_ts>2025-05-28 11:54:46 +0300</creation_ts>
          <short_desc>Cкрипт get_fallback.pl в ravada работает только при ручном переходе в /usr/share/ravada/</short_desc>
          <delta_ts>2025-05-28 14:57:02 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>ravada</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=51894</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Andrew Vasilyev">andy</assigned_to>
          <cc>andy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>265881</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-05-28 11:54:46 +0300</bug_when>
    <thetext>Шаги
====

# apt-get install -y mariadb-server &amp;&amp; \
    systemctl enable --now mysqld libvirtd &amp;&amp; \
    mariadb-secure-installation &amp;&amp; \
    mariadb -u root -p=1 -e &quot;create database ravada character set utf8 collate utf8_bin;&quot; &amp;&amp; \
    mariadb -u root -p=1 -e &quot;grant all privileges on ravada.* to &apos;rvd_user&apos;@&apos;localhost&apos; identified by &apos;1&apos;;&quot;

# apt-get install -y ravada
# sed -r &apos;s|password:.*|password: 1|g&apos; -i /etc/ravada.conf
# echo -e &quot;admin\ny\n&quot; | rvd_back --add-user admin
# systemctl enable --now rvd_{back,front} &amp;&amp; \
    systemctl status rvd_{back,front} --no-pager -l

# get_fallback.pl

Фактический результат
=====================

&gt; No such file or directory public/img at /usr/bin/get_fallback.pl line 74, &lt;DATA&gt; line 960

Ожидаемый результат
===================

Успешное выполнение скрипта.

Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ALT Server 11.0 beta20250213 x86_64
ravada-2.3.4-alt1.noarch

[p11] ALT Server 11.0 beta20250213 x86_64
ravada-2.3.3-alt1.noarch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265883</commentid>
    <comment_count>1</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-05-28 11:58:12 +0300</bug_when>
    <thetext>Предполагается запускать, видимо, из /usr/share/ravada/, тогда работает. Следует ли считать это корректным поведением?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265920</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-05-28 14:57:02 +0300</bug_when>
    <thetext>ravada-2.3.4-alt2 -&gt; sisyphus:

 Wed May 28 2025 Andrew A. Vasilyev &lt;andy@altlinux&gt; 2.3.4-alt2
 - fix get_fallback.pl to work from anywhere (ALT #54512)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>