Hallo Olaf,
hat sich die URL geändert?
Mein bisheriges Script sah so aus:
hat sich die URL geändert?
Code
--2018-05-24 17:32:35-- http://www.willuhn.de/products/jameica/releases/nightly/jameica-2.9.0-nightly-linux64.zip
Resolving www.willuhn.de... 85.214.66.230
Connecting to www.willuhn.de|85.214.66.230|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.willuhn.de/products/jameica/releases/nightly/jameica-2.9.0-nightly-linux64.zip [following]
--2018-05-24 17:32:35-- https://www.willuhn.de/products/jameica/releases/nightly/jameica-2.9.0-nightly-linux64.zip
Connecting to www.willuhn.de|85.214.66.230|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-05-24 17:32:35 ERROR 404: Not Found.
Resolving www.willuhn.de... 85.214.66.230
Connecting to www.willuhn.de|85.214.66.230|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.willuhn.de/products/jameica/releases/nightly/jameica-2.9.0-nightly-linux64.zip [following]
--2018-05-24 17:32:35-- https://www.willuhn.de/products/jameica/releases/nightly/jameica-2.9.0-nightly-linux64.zip
Connecting to www.willuhn.de|85.214.66.230|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-05-24 17:32:35 ERROR 404: Not Found.
Mein bisheriges Script sah so aus:
Code
#!/usr/bin/env bash
jameica_version=`wget --no-cache -q -O - http://www.willuhn.de/products/jameica/releases/version-nightly`
#jameica_version="2.7.0"
hibiscus_version=`wget --no-cache -q -O - http://www.willuhn.de/products/hibiscus/releases/version-nightly`
#hibiscus_version="2.7.0"
jameica_base="http://www.willuhn.de/products/jameica/releases/nightly"
jameica_file="jameica-${jameica_version}-nightly-linux64.zip"
jameica_src="${jameica_base}/${jameica_file}"
hibiscus_base="http://www.willuhn.de/products/hibiscus/releases/nightly"
hibiscus_file="hibiscus-${hibiscus_version}-nightly.zip"
hibiscus_src="${hibiscus_base}/${hibiscus_file}"
install_path="/opt"
tmp_path="/tmp"
cd "$tmp_path" \
&& wget -c "$jameica_src" \
&& wget -c "$hibiscus_src" \
&& cd "$install_path" \
&& rm -vrf jameica \
&& unzip "${tmp_path}/${jameica_file}" \
&& cd jameica \
&& cd plugins \
&& unzip "${tmp_path}/${hibiscus_file}" \
&& rm -vf "${tmp_path}/${jameica_file}","${hibiscus_file}"}
jameica_version=`wget --no-cache -q -O - http://www.willuhn.de/products/jameica/releases/version-nightly`
#jameica_version="2.7.0"
hibiscus_version=`wget --no-cache -q -O - http://www.willuhn.de/products/hibiscus/releases/version-nightly`
#hibiscus_version="2.7.0"
jameica_base="http://www.willuhn.de/products/jameica/releases/nightly"
jameica_file="jameica-${jameica_version}-nightly-linux64.zip"
jameica_src="${jameica_base}/${jameica_file}"
hibiscus_base="http://www.willuhn.de/products/hibiscus/releases/nightly"
hibiscus_file="hibiscus-${hibiscus_version}-nightly.zip"
hibiscus_src="${hibiscus_base}/${hibiscus_file}"
install_path="/opt"
tmp_path="/tmp"
cd "$tmp_path" \
&& wget -c "$jameica_src" \
&& wget -c "$hibiscus_src" \
&& cd "$install_path" \
&& rm -vrf jameica \
&& unzip "${tmp_path}/${jameica_file}" \
&& cd jameica \
&& cd plugins \
&& unzip "${tmp_path}/${hibiscus_file}" \
&& rm -vf "${tmp_path}/${jameica_file}","${hibiscus_file}"}