We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1914d1f commit 2027764Copy full SHA for 2027764
assets/scripts/set_orion_config.sh
@@ -11,7 +11,9 @@ SERVICE_FILE="/etc/systemd/system/orion.service"
11
LINES=$(cat $SERVICE_FILE)
12
13
# Replace the ExecStart line
14
-LINES=$(echo "$LINES" | sed "s|^ExecStart=.*|ExecStart=flutter-pi ${SCREEN_ROTATION:+-r $SCREEN_ROTATION} --release /home/$BASE_USER/orion|")
+if [ -n "$SCREEN_ROTATION" ]; then
15
+ LINES=$(echo "$LINES" | sed "s|flutter-pi\s*\(-r\s*[0-9]*\)*|flutter-pi -r $SCREEN_ROTATION|")
16
+fi
17
18
# Write the updated lines back to the service file
19
echo "$LINES" | sudo tee $SERVICE_FILE > /dev/null
0 commit comments