#!/bin/bash
if ! command -v openssl &> /dev/null
then
echo "OpenSSL could not be found. Installing now..."
sudo dnf install openssl -y
else
echo "OpenSSL is already installed."
fi
授权文本权限
chmod +x <your_script_name>.sh
执行脚本
./<your_script_name>.sh