Skip to content

Commit 01c4f44

Browse files
modify build workflow dispatch job to include random password
1 parent 995b16d commit 01c4f44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/packMachines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ jobs:
206206
207207
hashed_pass=$(mkpasswd --method=SHA-512 "$plain_pass")
208208
209-
sed "s|{{password_hash}}|$hashed_pass|" user-data > user-data-final
210-
mv user-data-final user-data
209+
sed "s|{{password_hash}}|$hashed_pass|" ./packer/ubuntu-server/http/user-data > ./packer/ubuntu-server/http/user-data-final
210+
mv ./packer/ubuntu-server/http/user-data-final ./packer/ubuntu-server/http/user-data
211211
212212
echo "user-data file is ready with hashed password."
213213

0 commit comments

Comments
 (0)