mirror of
https://github.com/hinto-janai/gupax.git
synced 2024-11-16 17:27:37 +00:00
e6bf49b309
Includes some small fixes:
- [localhost] will always be changed to [127.0.0.1] in the case
of XMRig (it doesn't understand localhost by itself)
- P2Pool/XMRig API path now checks for a [/] or [\]
and correctly applies the endpoint, e.g:
BASEPATH = "/home/hinto/p2pool"
ENDPOINT = "local/stats"
if BASEPATH doesn't end with '/' { BASEPATH.push('/') }
API_PATH = BASEPATH + ENDPOINT ("/home/hinto/p2pool/local/stats")
- P2Pool payout line got changed in: be18ad4177
The regex is now a more generic: [payout of [0-9].[0-9]+ XMR]
22 lines
450 B
Bash
Executable file
22 lines
450 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Sets up a packaging environment in [/tmp]
|
|
|
|
# Make sure we're in the [gupax/utils] directory
|
|
set -ex
|
|
[[ $PWD = */gupax ]]
|
|
|
|
# Make sure the folder doesn't already exist
|
|
GIT_COMMIT=$(cat .git/refs/heads/main)
|
|
FOLDER="gupax_${GIT_COMMIT}"
|
|
[[ ! -e /tmp/${FOLDER} ]]
|
|
|
|
mkdir /tmp/${FOLDER}
|
|
cp -r utils/* /tmp/${FOLDER}/
|
|
cp CHANGELOG.md /tmp/${FOLDER}/skel/
|
|
|
|
set +ex
|
|
|
|
echo
|
|
ls --color=always /tmp/${FOLDER}
|
|
echo "/tmp/${FOLDER} ... OK"
|