Update bitmagnet
This commit is contained in:
parent
5ebd8dc7ab
commit
5493caaed5
@ -34,7 +34,7 @@ VREL=v$RELEASE
|
|||||||
$STD go build -ldflags "-s -w -X github.com/bitmagnet-io/bitmagnet/internal/version.GitTag=$VREL"
|
$STD go build -ldflags "-s -w -X github.com/bitmagnet-io/bitmagnet/internal/version.GitTag=$VREL"
|
||||||
chmod +x bitmagnet
|
chmod +x bitmagnet
|
||||||
POSTGRES_PASSWORD=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
POSTGRES_PASSWORD=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
||||||
$STD sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD $POSTGRES_PASSWORD;"
|
$STD sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '$POSTGRES_PASSWORD';"
|
||||||
$STD sudo -u postgres psql -c "CREATE DATABASE bitmagnet;"
|
$STD sudo -u postgres psql -c "CREATE DATABASE bitmagnet;"
|
||||||
{
|
{
|
||||||
echo "PostgreSQL Credentials"
|
echo "PostgreSQL Credentials"
|
||||||
@ -42,7 +42,7 @@ $STD sudo -u postgres psql -c "CREATE DATABASE bitmagnet;"
|
|||||||
echo "postgres user password: $POSTGRES_PASSWORD"
|
echo "postgres user password: $POSTGRES_PASSWORD"
|
||||||
} >>~/postgres.creds
|
} >>~/postgres.creds
|
||||||
echo "${RELEASE}" >/opt/bitmagnet_version.txt
|
echo "${RELEASE}" >/opt/bitmagnet_version.txt
|
||||||
msg_ok "Installed bitmagnet"
|
msg_ok "Installed bitmagnet v${RELEASE}"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/bitmagnet-web.service
|
cat <<EOF >/etc/systemd/system/bitmagnet-web.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user