From c0bd66db41bdb7b1a9c423afde1a53353689c115 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 28 Jul 2023 16:11:37 +0100 Subject: [PATCH] feat: stop server when generating uid this should prevent issues when migrating to using uid --- lgsm/modules/command_start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/modules/command_start.sh b/lgsm/modules/command_start.sh index 295b2c68d..9b0c2f213 100644 --- a/lgsm/modules/command_start.sh +++ b/lgsm/modules/command_start.sh @@ -76,12 +76,12 @@ fn_start_tmux() { # create uid to ensure unique tmux socket if [ ! -f "${datadir}/${selfname}.uid" ]; then + command_stop.sh uid=$(date '+%s' | sha1sum | head -c 8) echo "${uid}" > "${datadir}/${selfname}.uid" socketname="${sessionname}-$(cat "${datadir}/${selfname}.uid")" fi - if [ "${shortname}" == "av" ]; then cd "${systemdir}" || exit else