$ vi /etc/systemd/system/<TIMER_NAME>.timer[Unit]
Description=<Describe your Timer>
[Timer]
| #!/usr/bin/env bash | |
| # This script is used to install k8s on ubuntu 22.04 amd64 server with CRI-O as container runtime and kubeadm as k8s installer. | |
| # To run this script, use the following command: | |
| # curl -sSL https://gist.githubusercontent.com/dnegi-dev/27a65a4417601d9900d32b092613d8ec/raw/48d4e41789ac43eec5064f4a0651ab8392d5d5de/create_k8s_ha_ubuntu.sh -o create_k8s_ha_ubuntu.sh && sudo bash create_k8s_ha_ubuntu.sh | |
| LOG_FILE=/var/log/k8s-install.log | |
| if [ $EUID != 0 ]; then | |
| echo "This script must be run as root." |
| #!/usr/bin/env bash | |
| ################################################################################ | |
| # This script checks for the Linux operating system and uses the appropriate | |
| # package manager to install the zsh shell, tmux, and byobu. To run this script | |
| # directly from GitHub Gist, use the following command: | |
| # | |
| # bash <(curl -s https://gist.githubusercontent.com/dnegi-dev/af4bd1abc162413b3236f4cd9c2de4f1/raw/4e9c8ecd3fc82fe97e9792850844b3ab588c53a0/install_zsh_and_byobu.sh) | |
| # | |
| # The script will automatically detect the package manager used by the system |
| #!/bin/bash | |
| # Check if zsh is installed | |
| if ! command -v zsh &> /dev/null; then | |
| echo "Zsh is not installed. Please install it first." | |
| exit 1 | |
| fi | |
| if ! command -v git &> /dev/null; then | |
| echo "Git is not installed, Please install it first." |