Skip to content

Commit 59f211a

Browse files
committed
set XDG_RUNTIME_DIR in environment
1 parent 7511c32 commit 59f211a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deb/update-nodejs-and-nodered

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tgta18=18.20.8 # need armv6l latest from https://unofficial-builds.nodejs.org/
2828
tgtl18=18.20.8 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
2929
tgta20=20.19.5 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
3030
tgtl20=20.19.5 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
31-
tgta22=22.21.0 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
31+
tgta22=22.21.1 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
3232
tgtl22=None
3333
tgta24=None
3434
tgtl24=None
@@ -732,6 +732,8 @@ case $yn in
732732
$SUDO sed -i 's#=512#='$mem'#;' ${SYSTEMDFILE}.temp
733733
$SUDO sed -i 's#^User=.*#User='$NODERED_USER'#;s#^Group=.*#Group='$NODERED_GROUP'#;s#^WorkingDirectory=.*#WorkingDirectory='$NODERED_HOME'#;s#^EnvironmentFile=-.*#EnvironmentFile=-'$NODERED_HOME'/.node-red/environment#;' ${SYSTEMDFILE}.temp
734734

735+
grep -sq XDG_RUNTIME_DIR $NODERED_HOME/.node-red/environment || echo XDG_RUNTIME_DIR=/run/user/$UID >> $NODERED_HOME/.node-red/environment
736+
735737
if test -f "$SYSTEMDFILE"; then
736738
# there's already a systemd script
737739
EXISTING_FILE=$(md5sum $SYSTEMDFILE | awk '$1 "${SYSTEMDFILE}" {print $1}');

0 commit comments

Comments
 (0)