lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 5106b905 1/2: Personalize for all users


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5106b905 1/2: Personalize for all users
Date: Thu, 2 Feb 2023 07:29:52 -0500 (EST)

branch: master
commit 5106b90526cf73cfa68e19e9e8454668cf45fbf4
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Personalize for all users
    
    Transplanted personalization to a script that's run for all users.
---
 lmi_setup_40.sh | 5 +++++
 lmi_setup_43.sh | 5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lmi_setup_40.sh b/lmi_setup_40.sh
index b6b68bf9..32dd2247 100755
--- a/lmi_setup_40.sh
+++ b/lmi_setup_40.sh
@@ -118,5 +118,10 @@ mkdir -p ~/.wine/drive_c/users/"${user}"/var/opt/
 cd ~/.wine/drive_c/users/"${user}"/var/opt/ || { printf 'failed: cd\n'; exit 
3; }
 ln --symbolic --relative --force --no-dereference /var/opt/lmi/ ./lmi
 
+  personalize="/srv/cache_for_lmi/$(whoami)/personalize.sh"
+  if [ -f "$personalize" ] && [ -x "$personalize" ]; then
+    "$personalize"
+  fi
+
 stamp=$(date -u +'%Y%m%dT%H%M%SZ')
 echo "$stamp $0: Configured 'wine' for user '$user'." | tee /dev/tty || true
diff --git a/lmi_setup_43.sh b/lmi_setup_43.sh
index 8d92a14c..990dd2ca 100755
--- a/lmi_setup_43.sh
+++ b/lmi_setup_43.sh
@@ -131,11 +131,6 @@ if [ "greg" = "$(whoami)" ]; then
   git remote set-url --push origin chicares@git.sv.gnu.org:/srv/git/lmi.git
   git remote add xanadu     https://github.com/vadz/lmi.git   || echo "Oops."
   git remote add shangri-la https://github.com/thesiv/lmi.git || echo "Oops."
-else
-  personalize="/srv/cache_for_lmi/$(whoami)/personalize.sh"
-  if [ -f "$personalize" ] && [ -x "$personalize" ]; then
-    "$personalize"
-  fi
 fi
 
 find . -path ./.git -prune -o -type f -print0 \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]