config_fix
This commit is contained in:
parent
95b088155c
commit
e30f8d8d0d
1 changed files with 9 additions and 16 deletions
|
@ -323,15 +323,6 @@ fi
|
||||||
# mirrorlist
|
# mirrorlist
|
||||||
cp /opt/${repo}/mirrorlist* /etc/pacman.d/
|
cp /opt/${repo}/mirrorlist* /etc/pacman.d/
|
||||||
|
|
||||||
# new-config
|
|
||||||
if [ -d /home/"$username"/.config ]; then
|
|
||||||
rm -Rv /home/"$username"/.config
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d /root/.config ]; then
|
|
||||||
rm -Rv /root/.config
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f /var/lib/pacman/db.lck ];then
|
if [ -f /var/lib/pacman/db.lck ];then
|
||||||
rm /var/lib/pacman/db.lck
|
rm /var/lib/pacman/db.lck
|
||||||
fi
|
fi
|
||||||
|
@ -769,14 +760,16 @@ if [ "$version" != "lite" ] && [ "$skip" != "skip" ]; then
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# .config
|
if [ "$skip" != "skip" ]; then
|
||||||
if [ -d /root/.config ]; then
|
# .config
|
||||||
|
if [ -d /root/.config ]; then
|
||||||
rm -Rv /root/.config
|
rm -Rv /root/.config
|
||||||
|
fi
|
||||||
|
mkdir -p /root/.config
|
||||||
|
tar -vxJf /opt/${repo}/.config.tar.xz -C /root/.config/
|
||||||
|
gnomeconfig
|
||||||
|
copyconfig
|
||||||
fi
|
fi
|
||||||
mkdir -p /root/.config
|
|
||||||
tar -vxJf /opt/${repo}/.config.tar.xz -C /root/.config/
|
|
||||||
gnomeconfig
|
|
||||||
copyconfig
|
|
||||||
|
|
||||||
if pacman -Qdtq; then
|
if pacman -Qdtq; then
|
||||||
echo "Verwaiste Packete werden entfernt :)"
|
echo "Verwaiste Packete werden entfernt :)"
|
||||||
|
|
Loading…
Reference in a new issue