Skip to content

Commit

Permalink
v6.28
Browse files Browse the repository at this point in the history
+ DietPi-Software | Home Assistant: Assure that correct data dir owner is re-applied on reinstalls, in case it got changed for some reason
+ DietPi-Software | Set some syslog identifiers to systemd units, where the ExecStart binary is a shell script or runtime binary which does not necessarily reflext the software name nicely
  • Loading branch information
MichaIng authored Jan 3, 2020
1 parent 166ba5c commit 70586d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -11693,6 +11693,7 @@ Description=Roon Server (DietPi)
After=network.target

[Service]
SyslogIdentifier=roonserver
Environment=ROON_DATAROOT=$G_FP_DIETPI_USERDATA/roonserver
ExecStart=$G_FP_DIETPI_USERDATA/roonserver/start.sh

Expand Down Expand Up @@ -11730,6 +11731,7 @@ Wants=network-online.target
After=network-online.target mariadb.service

[Service]
SyslogIdentifier=homeassistant
User=homeassistant
ExecStart=/home/homeassistant/homeassistant-start.sh

Expand All @@ -11745,11 +11747,11 @@ _EOF_

[[ -d '/home/homeassistant/.homeassistant' ]] && mv /home/homeassistant/.homeassistant $G_FP_DIETPI_USERDATA/homeassistant
mkdir -p $G_FP_DIETPI_USERDATA/homeassistant
chown -R homeassistant:homeassistant $G_FP_DIETPI_USERDATA/homeassistant

fi
rm -Rf /home/homeassistant/.homeassistant
ln -s $G_FP_DIETPI_USERDATA/homeassistant /home/homeassistant/.homeassistant
chown -R homeassistant:homeassistant $G_FP_DIETPI_USERDATA/homeassistant

fi

Expand Down Expand Up @@ -11837,6 +11839,7 @@ _EOF_
Description=nukkit (DietPi)

[Service]
SyslogIdentifier=Nukkit
WorkingDirectory=/usr/local/bin/nukkit
ExecStart=/bin/bash -c 'java -jar /usr/local/bin/nukkit/nukkit.jar'

Expand Down

0 comments on commit 70586d2

Please sign in to comment.