Skip to content

Commit

Permalink
shell script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
1activegeek committed Jul 16, 2024
1 parent 6357bf9 commit 5aaf186
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ if [ -z "$AIRUPNP_VAR" ]; then
elif [ "$AIRUPNP_VAR" = "kill" ]; then
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-airupnp
echo "AIRUPNP_VAR set to kill, removing airupnp service launch"
else
sed -i 's;exec /bin/airupnp-linux-x86_64 -l 1000:2000;exec /bin/airupnp-linux-x86_64 '"$AIRUPNP_VAR"';' /etc/s6-overlay/s6-rc.d/svc/airupnp/run
elif [ "$AIRUPNP_VAR" != "kill" ]; then
sed -i 's;exec /bin/airupnp-linux-x86_64 -l 1000:2000;exec /bin/airupnp-linux-x86_64 '"$AIRUPNP_VAR"';' /etc/s6-overlay/s6-rc.d/svc-airupnp/run
echo "AIRUPNP_VAR present, updating airupnp launch variables"
fi

Expand All @@ -17,7 +17,7 @@ if [ -z "$AIRCAST_VAR" ]; then
elif [ "$AIRCAST_VAR" = "kill" ]; then
rm /etc/s6-overlay/s6-rc.d/user/contents.d/svc-aircast
echo "AIRCAST_VAR set to kill, removing aircast service launch"
else
sed -i 's;exec /bin/aircast-linux-x86_64;exec /bin/aircast-linux-x86_64 '"$AIRCAST_VAR"';' /etc/s6-overlay/s6-rc.d/svc/aircast/run
elif [ "$AIRCAST_VAR" != "kill" ]; then
sed -i 's;exec /bin/aircast-linux-x86_64;exec /bin/aircast-linux-x86_64 '"$AIRCAST_VAR"';' /etc/s6-overlay/s6-rc.d/svc-aircast/run
echo "AIRCAST_VAR present, updating aircast launch variables"
fi

0 comments on commit 5aaf186

Please sign in to comment.