Files
Kubernetes.K3s.installLog/services/Webtop/configmap-init.d-zsh.yaml

19 lines
396 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: init.d-zsh
namespace: webtop
data:
00-zsh.sh: |
#!/bin/bash
# Make sure zsh is installed and available
ZSH_BIN=$(command -v zsh)
if [[ -x "$ZSH_BIN" ]]; then
echo "[webtop] Setting abc's default shell to $ZSH_BIN"
usermod -s "$ZSH_BIN" abc
else
echo "[webtop] zsh not found, skipping chsh"
fi