Move AllUsers config out of $PSHOME and add Get-PowerShellConfiguration cmdlet

This commit is contained in:
Justin Chung
2026-05-26 16:20:04 -05:00
parent 11dc00159a
commit 8ef8ae1138
12 changed files with 216 additions and 11 deletions
+6
View File
@@ -11,6 +11,8 @@ if [ ! -f /etc/shells ] ; then
else
grep -q "^{0}$" /etc/shells || echo "{0}" >> /etc/shells
fi
mkdir -p /etc/powershell
chmod 755 /etc/powershell
if [ -f /lib64/libssl.so.1.1 ] ; then
ln -f -s /lib64/libssl.so.1.1 {1}/libssl.so.1.0.0
ln -f -s /lib64/libcrypto.so.1.1.1 {1}/libcrypto.so.1.0.0
@@ -39,6 +41,8 @@ set -e
case "$1" in
(configure)
add-shell "{0}"
mkdir -p /etc/powershell
chmod 755 /etc/powershell
;;
(abort-upgrade|abort-remove|abort-deconfigure)
exit 0
@@ -82,6 +86,8 @@ if [ ! -f /etc/shells ] ; then
else
grep -q "^{0}$" /etc/shells || echo "{0}" >> /etc/shells
fi
mkdir -p /etc/powershell
chmod 755 /etc/powershell
'@
MacOSLauncherScript = @'