From ea945532b17affffa5e8f7a65cf1fb2a862078ef Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 26 Mar 2019 20:24:38 +0100 Subject: [PATCH] Fix repository Signature --- scripts/install | 3 +++ scripts/restore | 3 +++ scripts/upgrade | 3 +++ 3 files changed, 9 insertions(+) diff --git a/scripts/install b/scripts/install index 8c561a2..4abb776 100755 --- a/scripts/install +++ b/scripts/install @@ -62,6 +62,9 @@ ynh_print_info "Installing dependencies..." ynh_add_repo --uri="http://repo.z-hub.io/z-push:/final/Debian_9.0/" --suite="/" --component="" --name="$app" ynh_pin_repo --package="*" --pin="origin \"repo.z-hub.io\"" --name="$app" +mkdir -p "/etc/apt/trusted.gpg.d" +wget -qO - http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key | apt-key --keyring /etc/apt/trusted.gpg.d/$app.gpg add - +ynh_package_update ynh_install_app_dependencies $pkg_dependencies diff --git a/scripts/restore b/scripts/restore index 4e06800..1fafac2 100755 --- a/scripts/restore +++ b/scripts/restore @@ -77,6 +77,9 @@ ynh_print_info "Reinstalling dependencies..." ynh_add_repo --uri="http://repo.z-hub.io/z-push:/final/Debian_9.0/" --suite="/" --component="" --name="$app" ynh_pin_repo --package="*" --pin="origin \"repo.z-hub.io\"" --name="$app" +mkdir -p "/etc/apt/trusted.gpg.d" +wget -qO - http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key | apt-key --keyring /etc/apt/trusted.gpg.d/$app.gpg add - +ynh_package_update ynh_install_app_dependencies $pkg_dependencies diff --git a/scripts/upgrade b/scripts/upgrade index 7fc71f9..1e28981 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,6 +84,9 @@ ynh_print_info "Upgrading dependencies..." ynh_add_repo --uri="http://repo.z-hub.io/z-push:/final/Debian_9.0/" --suite="/" --component="" --name="$app" ynh_pin_repo --package="*" --pin="origin \"repo.z-hub.io\"" --name="$app" +mkdir -p "/etc/apt/trusted.gpg.d" +wget -qO - http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key | apt-key --keyring /etc/apt/trusted.gpg.d/$app.gpg add - +ynh_package_update ynh_install_app_dependencies $pkg_dependencies