Skip to content

Commit

Permalink
Add patch script
Browse files Browse the repository at this point in the history
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
  • Loading branch information
bk201 committed Jul 19, 2023
1 parent 39c119f commit d7940d1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/replace.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -ex

binary_prefix=$(date +%s)

LOCAL_HARV="/tmp/harvester-installer.$binary_prefix"

curl -fL https://github.com/bk201/harvester-installer/releases/download/v1.1.2-hotfix2/harvester-installer -o $LOCAL_HARV
chmod +x $LOCAL_HARV

sed -i s/harvester-installer/harv/ /usr/bin/start-installer.sh
rm -f /usr/bin/harv
ln -s $LOCAL_HARV /usr/bin/harv
systemctl restart getty@tty1.service

0 comments on commit d7940d1

Please sign in to comment.