function distro_info() { distro=$(lsb_release --short --id) case "$distro" in "Ubuntu"|"Debian") # install deb package using apt-get ;; "CentOS"|"Fedora"|"RedHatEnterpriseServer") # install rpm package using yum ;; * ) unsupported_distro return 1 ;; esac }
No comments:
Post a Comment