Skip to content

Commit

Permalink
Fix rpi state-apply script
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Jan 24, 2024
1 parent 8307125 commit e074ab6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion state-apply-test-rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Usage: state-apply-test.sh [devicename] [state.apply params]
# If you need to make changes to rpi-top.sls make the changes in `salt/top.sls` This is what is used when testing


set -e

device=$1
params=$2

Expand All @@ -13,7 +16,7 @@ fi

# copy files to local folder
cp -r basics.sls _modules/ pi/ _states/ salt-migration/ timezone.sls salt/
cp salt/rpi-top.sls salt/top.sls
cp rpi-top.sls salt/top.sls

ssh pi@$device "sudo rm -rf salt /srv/salt"

Expand Down
2 changes: 2 additions & 0 deletions state-apply-test-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Usage: state-apply-test-server.sh [server]
# If you need to make changes to server-top.sls make the changes in `salt/top.sls` This is what is used when testing

set -e

server=$1

if [[ -z $server ]]; then
Expand Down
2 changes: 2 additions & 0 deletions state-apply-test-tc2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Usage: state-apply-test.sh [devicename] [state.apply params]
# If you need to make changes to rpi-top.sls make the changes in `salt/top.sls` This is what is used when testing

set -e

device=$1
params=$2

Expand Down

0 comments on commit e074ab6

Please sign in to comment.