Skip to content

Instantly share code, notes, and snippets.

@b-
Created October 5, 2023 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b-/77413a0107986d1ef42ddba93e8ed9c4 to your computer and use it in GitHub Desktop.
Save b-/77413a0107986d1ef42ddba93e8ed9c4 to your computer and use it in GitHub Desktop.
1password after-install.sh modified for kinoite post-install
commit 857e68ddc3eb63b068a1eb16e57ed1e040203819
Author: bri <284789+b-@users.noreply.github.com>
Date: Thu Oct 5 14:40:43 2023 -0400
comment out stuff
diff --git a/after-install.sh b/after-install.sh
index 07f25cd..a5eb9e2 100755
--- a/after-install.sh
+++ b/after-install.sh
@@ -94,18 +94,18 @@ installFiles() {
CWD=$(pwd)
cd /opt/1Password/
- # Fill in policy kit file with a list of (the first 10) human users of the system.
- export POLICY_OWNERS
- POLICY_OWNERS="$(cut -d: -f1,3 /etc/passwd | grep -E ':[0-9]{4}$' | cut -d: -f1 | head -n 10 | sed 's/^/unix-user:/' | tr '\n' ' ')"
- eval "cat <<EOF
-$(cat ./com.1password.1Password.policy.tpl)
-EOF" > ./com.1password.1Password.policy
-
- # Install policy kit file for system unlock
- install -Dm0644 ./com.1password.1Password.policy -t /usr/share/polkit-1/actions/
-
- # Install examples
- install -Dm0644 ./resources/custom_allowed_browsers -t /usr/share/doc/1password/examples/
+# # Fill in policy kit file with a list of (the first 10) human users of the system.
+# export POLICY_OWNERS
+# POLICY_OWNERS="$(cut -d: -f1,3 /etc/passwd | grep -E ':[0-9]{4}$' | cut -d: -f1 | head -n 10 | sed 's/^/unix-user:/' | tr '\n' ' ')"
+# eval "cat <<EOF
+#$(cat ./com.1password.1Password.policy.tpl)
+#EOF" > ./com.1password.1Password.policy
+#
+# # Install policy kit file for system unlock
+# install -Dm0644 ./com.1password.1Password.policy -t /usr/share/polkit-1/actions/
+#
+# # Install examples
+# install -Dm0644 ./resources/custom_allowed_browsers -t /usr/share/doc/1password/examples/
# chrome-sandbox requires the setuid bit to be specifically set.
# See https://github.com/electron/electron/issues/17972
@@ -133,8 +133,8 @@ EOF" > ./com.1password.1Password.policy
# Restore previous directory
cd "$CWD"
- # Register path symlink
- ln -sf /opt/1Password/1password /usr/bin/1password
+# # Register path symlink
+# ln -sf /opt/1Password/1password /usr/bin/1password
}
if [ "$(id -u)" -ne 0 ]; then
@@ -143,6 +143,6 @@ if [ "$(id -u)" -ne 0 ]; then
fi
installFiles
-installAutoupdateChannel
+#installAutoupdateChannel
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment