mirror of
https://github.com/ben-grande/qusal.git
synced 2024-12-19 12:54:35 -05:00
21 lines
524 B
Bash
Executable File
21 lines
524 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
|
##
|
|
## SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
set -eu
|
|
python_dir="/usr/lib/python3/dist-packages"
|
|
bin_dir="/usr/bin"
|
|
tmp_dir="/tmp/electrumx-upload"
|
|
|
|
rm -rf "${tmp_dir}"
|
|
mkdir -p "${tmp_dir}"
|
|
qfile-unpacker 0 "${tmp_dir}"
|
|
cd "${tmp_dir}"
|
|
cp -r electrumx "${python_dir}"/
|
|
cp electrumx_server electrumx_rpc electrumx_compact_history "${bin_dir}"/
|
|
|
|
## Qube needs to shutdown for the app qube to have the uploaded files.
|
|
shutdown now
|