Skip to content

Commit b24ed19

Browse files
committed
testing
1 parent 2986f67 commit b24ed19

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

github-runner/node-runner.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ fi
116116

117117
echo "[+] Extracting runner..."
118118
tar xzf runner.tar.gz
119-
119+
echo "[+] Setting permissions... `pwd`"
120+
chown -R $RUNAS_USER:$RUNAS_GROUP .
120121
# --- GET REGISTRATION TOKEN ---
121122
echo "[+] Requesting registration token..."
122123
REG_TOKEN=$(curl -s -X POST \
@@ -135,6 +136,7 @@ sudo -u $RUNAS_USER ./config.sh \
135136

136137
# --- SETUP SYSTEMD SERVICE ---
137138
echo "[+] Installing systemd service..."
139+
export SUDO_USER=$RUNAS_USER
138140
sudo ./svc.sh install
139141
sudo ./svc.sh start
140142

scripts/bootstrap/create-provision-user.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,8 @@ else
105105
sudo -u $USER_NAME ssh-keygen -t ed25519 -f /home/$USER_NAME/.ssh/id_ed25519 -N "" -C "${USER_NAME}@$(hostname)"
106106
fi
107107
fi
108-
log "⚙️ $USER_NAME SSH key pair public key (add on worker nodes if needed):"
108+
log "
109+
⚠️ ⚠️ ⚠️ ⚠️ ⚠️ Store the following public key for later usage ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
110+
⚙️ $USER_NAME SSH key pair public key (add on worker nodes if needed):
111+
"
109112
sudo cat /home/$USER_NAME/.ssh/id_ed25519.pub

0 commit comments

Comments
 (0)