Skip to content

Commit 62f6525

Browse files
committed
- created systemd user dir if it doesn't exist.
1 parent 11f0730 commit 62f6525

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/handle_tmux_automatic_start/systemd_enable.sh

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ main() {
4949
local systemd_tmux_server_start_cmd="$(get_tmux_option "${systemd_tmux_server_start_cmd_option}" "${systemd_tmux_server_start_cmd_default}" )"
5050
local tmux_start_script_path="${CURRENT_DIR}/linux_start_tmux.sh"
5151
local systemd_unit_file=$(template "${tmux_start_script_path}" "${options}")
52+
if [[ ! -d $( dirname $systemd_unit_file_path ) ]]; then
53+
mkdir -p $(dirname $systemd_unit_file_path)
54+
fi
5255
echo "$systemd_unit_file" > "${systemd_unit_file_path}"
5356
enable_tmux_unit_on_boot
5457
}

0 commit comments

Comments
 (0)