Fixed missing certifi package for python 3

This commit is contained in:
Brian Zalewski 2023-11-05 04:06:36 +00:00
parent 65a40e74cf
commit 933cde968a
4 changed files with 12 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{{- if false -}} {{- if (ne .host.distro.family "windows") -}}
#!/usr/bin/env bash #!/usr/bin/env bash
# @file Kasm Workspaces # @file Kasm Workspaces
# @brief Sets up cloud desktop server via Kasm Workspaces # @brief Sets up cloud desktop server via Kasm Workspaces

View file

@ -12,6 +12,8 @@
{{ $removeShortcuts := join " " .removeLinuxShortcuts }} {{ $removeShortcuts := join " " .removeLinuxShortcuts }}
# shortcuts to remove: {{ $removeShortcuts }} # shortcuts to remove: {{ $removeShortcuts }}
logg info 'Processing remove shortcuts step for Linux machines'
### Remove unnecessary desktop shortcuts ### Remove unnecessary desktop shortcuts
for DESKTOP_ICON in {{ $removeShortcuts }}; do for DESKTOP_ICON in {{ $removeShortcuts }}; do
for SHORTCUT_FOLDER in {{ .host.home }}/.local/share/applications {{ .host.home }}/.local/share/applications/wine/Programs; do for SHORTCUT_FOLDER in {{ .host.home }}/.local/share/applications {{ .host.home }}/.local/share/applications/wine/Programs; do

View file

@ -171,6 +171,13 @@ if command -v warp-cli > /dev/null; then
### Python ### Python
if command -v python3 > /dev/null; then if command -v python3 > /dev/null; then
### Ensure Certifi package is available globally
if ! pip3 list certifi | grep certifi > /dev/null; then
logg info 'Ensuring certifi is installed globally for Python 3'
pip3 install certifi
fi
### Copy CloudFlare PEM file to Python 3 location
logg info "Configuring python3 / python to use "$HOME/.local/etc/ssl/cloudflare/Cloudflare_CA.pem"" logg info "Configuring python3 / python to use "$HOME/.local/etc/ssl/cloudflare/Cloudflare_CA.pem""
echo | cat - "$HOME/.local/etc/ssl/cloudflare/Cloudflare_CA.pem" >> $(python3 -m certifi) echo | cat - "$HOME/.local/etc/ssl/cloudflare/Cloudflare_CA.pem" >> $(python3 -m certifi)
fi fi

View file

@ -19,6 +19,8 @@ if command -v volta > /dev/null; then
if ! test "$(node --version | sed 's/^v//' | awk '{print $1}' | awk -F'.' ' ( $1 > 15) ')"; then if ! test "$(node --version | sed 's/^v//' | awk '{print $1}' | awk -F'.' ' ( $1 > 15) ')"; then
logg info 'Installing latest version of Node.js' logg info 'Installing latest version of Node.js'
volta install node@latest volta install node@latest
logg info 'Ensuring NPM is updated to latest'
npm install -g npm@latest
else else
logg info 'Node.js appears to meet the minimum version requirements (version >15)' logg info 'Node.js appears to meet the minimum version requirements (version >15)'
fi fi