%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 188.40.95.74 / Your IP : 216.73.216.142 Web Server : Apache System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64 User : vlasotin ( 1054) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/tools/ |
Upload File : |
#!/usr/bin/bash -e # just in case of hidden files.. not sure why would someone do that, it's more # like forgotten cache file possibility, but rather do that.. shopt -s dotglob is_dir_empty() { test -z "$(ls -A $1)" } handle_dir() { # Move all files from $1 to $2 when the /etc/yum/$1 is not empty # and not already a link # Then remove the $1 directory and relink it to $2 # param $1: dirname under /etc/yum path # param $2: dirname under /etc/dnf path if [ "$(readlink /etc/yum/$1)" == "../dnf/$2" ]; then return fi if ! is_dir_empty "/etc/yum/$1"; then mv /etc/yum/$1/* /etc/dnf/$2/ fi rm -rf /etc/yum/$1 #relink ln -s ../dnf/$2 /etc/yum/$1 return 0 } # assume the directories are not removed by user.. handle_dir pluginconf.d plugins handle_dir protected.d protected.d handle_dir vars vars