Skip to content

Commit

Permalink
Merge pull request #1703 from atsign-foundation/fix-uni-fresh-install
Browse files Browse the repository at this point in the history
fix: always try to create systemd conf dir
  • Loading branch information
XavierChanth authored Jan 28, 2025
2 parents f3eeb12 + 9f3278f commit f3882a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dart/sshnoports/bundles/shell/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,12 @@ install_systemd_unit() {
unit_name="$1"
systemd_unit="$systemd_dir/$unit_name"
systemd_config="$systemd_unit.d/override.conf"
if ! [ -d "$systemd_unit.d" ]; then
mkdir -p "$systemd_unit.d"
fi
no_mac
if [ -f "$systemd_unit" ]; then
# migrate old config from systemd unit file to override.conf
mkdir -p "$systemd_unit.d"
touch "$systemd_config"
if [ ! -s "$systemd_config" ]; then
echo "[Service]" >> "$systemd_config"
Expand Down

0 comments on commit f3882a2

Please sign in to comment.