Issue #8660 resolved

url raw fixe

Andy Kimpe
created an issue

here I will explain my problem

I would like to create a cron to automatically update the file ZPP of zantasticox

https://bitbucket.org/andykimpe/zantasticox/src/

on my server

the problem is that the url is fixed

it always points to the same version of the file and not to the most recent version

my cron

#!/bin/bash
cd /var/zpanel/hostdata/zadmin/public_html/zpx_hebergekimpe_fr
rm -f zantasticox.zpp
rm -f zantasticox.xml
wget https://bitbucket.org/andykimpe/zantasticox/raw/22f7936ac3fc9f36a38755eac628511dac0e0836/zantasticox.xml
wget https://bitbucket.org/andykimpe/zantasticox/raw/22f7936ac3fc9f36a38755eac628511dac0e0836/generate-zpp-file.sh
bash generate-zpp-file.sh
rm -f generate-zpp-file.sh

should therefore quickly please ensure that the raw url still points to a later version of the file

like on github

thank you

Comments (4)

  1. Andy Kimpe reporter

    I said nothing because it was not already

    #!/bin/bash
    cd /var/zpanel/hostdata/zadmin/public_html/zpx_hebergekimpe_fr
    rm -f zantasticox.zpp
    rm -f zantasticox.xml
    wget https://bitbucket.org/andykimpe/zantasticox/raw/master/zantasticox.xml
    wget https://bitbucket.org/andykimpe/zantasticox/raw/master/generate-zpp-file.sh
    bash generate-zpp-file.sh
    rm -f generate-zpp-file.sh
    
  2. Andy Kimpe reporter

    I said nothing because it was not already

    #!/bin/bash
    cd /var/zpanel/hostdata/zadmin/public_html/zpx_hebergekimpe_fr
    rm -f zantasticox.zpp
    rm -f zantasticox.xml
    wget https://bitbucket.org/andykimpe/zantasticox/raw/master/zantasticox.xml
    wget https://bitbucket.org/andykimpe/zantasticox/raw/master/generate-zpp-file.sh
    bash generate-zpp-file.sh
    rm -f generate-zpp-file.sh
    
  3. Log in to comment