Commit d980ae47 authored by Chaoting Liu's avatar Chaoting Liu 😖

cache remote socket everytime when there is connection

parent cbaa7b86
......@@ -148,6 +148,7 @@ upload_files() {
sign_online_database() {
# remove current signature file and remotely execute gpg --detach-sign command to sign the databases
# enable verbose to indicate the procedure
local _remote_socket=$(ssh ${ssh_user}@${rsync_server} -p ${ssh_port} gpgconf --list-dir agent-socket)
status_start 'remotely signing the database \n'
for ext in gz xz; do
ssh -R${_remote_socket}:$(gpgconf --list-dir agent-socket) $_ssh_user@$_rsync_server -p $_ssh_port \
......@@ -159,6 +160,7 @@ sign_online_database() {
sign_online_pkg() {
# remotely execute gpg --detach-sign command to sign the package
local _remote_socket=$(ssh ${ssh_user}@${rsync_server} -p ${ssh_port} gpgconf --list-dir agent-socket)
status_start "remotely signing the pkg $2 \n"
ssh $_ssh_user@$_rsync_server -R${_remote_socket}:$(gpgconf --list-dir agent-socket) -p $_ssh_port \
gpg -v --batch --detach-sign "packages/$1/$(get_arch)/$2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment