From 8b17bc6dc63898ea7361ed9424173d8968464670 Mon Sep 17 00:00:00 2001 From: XavierChanth Date: Tue, 28 Jan 2025 17:58:19 -0500 Subject: [PATCH] fix: always try to create systemd conf dir --- packages/dart/sshnoports/bundles/shell/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/dart/sshnoports/bundles/shell/install.sh b/packages/dart/sshnoports/bundles/shell/install.sh index 1ae11983c..2320b4649 100755 --- a/packages/dart/sshnoports/bundles/shell/install.sh +++ b/packages/dart/sshnoports/bundles/shell/install.sh @@ -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"