#!/bin/bash #################################################################### # # Script, um die CentOS 7 Repos herunterzuladen und ein eigenständiges # Repo aufzubauen # # #################################################################### repo_path="/var/ftp/centos/7/" function textbox () { cat << EOF ****************************** * $1 ****************************** EOF } textbox base-Repo reposync --gpgcheck -l --downloadcomps --repoid=base --norepopath --download_path=$repo_path/base/x86_64 \ && createrepo -g $repo_path/base/x86_64/comps.xml $repo_path/base/ textbox extras-Repo reposync --gpgcheck -l --downloadcomps --repoid=extras --norepopath --download_path=$repo_path/extras/x86_64 \ && createrepo $repo_path/extras/ textbox updates-Repo reposync --gpgcheck -l --downloadcomps --repoid=updates --norepopath --download_path=$repo_path/updates/x86_64 \ && createrepo $repo_path/updates/ textbox epel-Repo reposync --delete --gpgcheck -l --downloadcomps --repoid=epel --norepopath --download_path=$repo_path/epel/x86_64 \ && createrepo -g $repo_path/epel/x86_64/comps.xml $repo_path/epel/