From 28507c5f644e7b4737a389577dbd5a7443f538f9 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 26 May 2024 22:28:26 -0700 Subject: upd consider studio stop dyafk before update arkenfox userjs --- sh/upd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sh/upd') diff --git a/sh/upd b/sh/upd index 229f837..e50e32f 100755 --- a/sh/upd +++ b/sh/upd @@ -126,16 +126,20 @@ fast () { } userjs () { - kill $(pidof "$BROWSER") case "$hostname" in - xyzstudio) profile_dir="$HOME/.mozilla/firefox/dyafk";; + xyzstudio) + profile_dir="$HOME/.mozilla/firefox/dyafk" + sudo systemctl stop dyafk@xyz + ;; *) profile_dir="$HOME/.mozilla/firefox/xxxxxxxx.fly";; esac + kill $(pidof "$BROWSER") # change working dir for cleaner cd "$profile_dir" || exit arkenfox-cleaner -s # when multiple firefox profiles, it will prompt me to choose, which breaks automation, so I explicitly specify one profile arkenfox-updater -s -p "$profile_dir" + [ "$hostname" = xyzstudio ] && sudo systemctl start dyafk@xyz } misc () { -- cgit v1.2.3-70-g09d2