From 5131cfe35e6f4282027730a50a8ca74740fbd9bb Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Sat, 18 Nov 2023 07:47:00 +0400 Subject: [PATCH] fix LADMIN => LUSER --- .drone.yml | 3 +-- nixos-infect | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0feeb4e..63143a8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,8 +22,7 @@ steps: - echo 'echo "Hello, NetCat!"' >> infect.sh - echo "curl https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect/raw/branch/$DRONE_SOURCE_BRANCH/nixos-infect | PROVIDER=hetzner DOMAIN=$DOMAIN LUSER=cicdcicd ENCODED_PASSWORD=\"$(printf $USER_PASS | base64)\" CF_TOKEN=$CLOUDFLARE_TOKEN DB_PASSWORD=$USER_PASS API_TOKEN=$USER_PASS HOSTNAME=selfprivacy-ci-test DNS_PROVIDER_TYPE=CLOUDFLARE STAGING_ACME=false NIX_VERSION=2.18.2 NIXOS_CONFIG_NAME=sp-nixos CONFIG_URL=https://git.selfprivacy.org/api/v1/repos/alexoundos/selfprivacy-nixos-top-level/archive/master.tar.gz bash 2>&1 | tee /root/infect.log" >> infect.sh - http -v --check-status --ignore-stdin POST https://api.hetzner.cloud/v1/servers Authorization:"Bearer $PASSWORD" name=ci-sibling server_type=cx11 start_after_create:=true image=ubuntu-20.04 user_data=@infect.sh automount:=false location=fsn1 - - echo "Wait for 100 seconds." - - sleep 60 + - sleep 140 - false - name: dns diff --git a/nixos-infect b/nixos-infect index d3399e2..bd295fa 100755 --- a/nixos-infect +++ b/nixos-infect @@ -39,7 +39,7 @@ genUserdata() { "domain": "DOMAIN", "hashedMasterPassword": "$HASHED_PASSWORD", "hostname": "HOSTNAME", - "username": "$LADMIN" + "username": "$LUSER" } EOF )