Commit 6eb0e315 authored by Ram-Z's avatar Ram-Z

Cleanup a bit

parent 9179e543
......@@ -148,11 +148,12 @@ 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'
local _remote_socket=$(ssh $_ssh_user@$_rsync_server -p $_ssh_port gpgconf --list-dir agent-socket)
local _local_socket=$(gpgconf --list-dir agent-socket)
status_start "Remotely signing database: $1\n"
for ext in gz xz; do
ssh -R${_remote_socket}:$(gpgconf --list-dir agent-socket) $_ssh_user@$_rsync_server -p $_ssh_port \
gpg --batch --detach-sign packages/$1/$(get_arch)/$1.db.tar.$ext
ssh -R $_remote_socket:$_local_socket $_ssh_user@$_rsync_server -p $_ssh_port \
gpg --batch --detach-sign packages/$1/$(get_arch)/$1.db.tar.$ext
done
newline
status_done
......@@ -160,9 +161,10 @@ 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 \
local _remote_socket=$(ssh $_ssh_user@$_rsync_server -p $_ssh_port gpgconf --list-dir agent-socket)
local _local_socket=$(gpgconf --list-dir agent-socket)
status_start "Remotely signing pkg: $1/$2 \n"
ssh -R $_remote_socket:$_local_socket $_ssh_user@$_rsync_server -p $_ssh_port \
gpg -v --batch --detach-sign "packages/$1/$(get_arch)/$2"
newline
status_done
......
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