From e30f8d8d0de1bed7d79c4e9f5b38afe480440ff5 Mon Sep 17 00:00:00 2001 From: simono41 Date: Tue, 12 Jun 2018 01:40:53 +0200 Subject: [PATCH] config_fix --- arch-graphical-install-auto | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index a820594..9c866e4 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -323,15 +323,6 @@ fi # mirrorlist 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 rm /var/lib/pacman/db.lck fi @@ -769,14 +760,16 @@ if [ "$version" != "lite" ] && [ "$skip" != "skip" ]; then fi -# .config -if [ -d /root/.config ]; then - rm -Rv /root/.config +if [ "$skip" != "skip" ]; then + # .config + if [ -d /root/.config ]; then + rm -Rv /root/.config + fi + mkdir -p /root/.config + tar -vxJf /opt/${repo}/.config.tar.xz -C /root/.config/ + gnomeconfig + copyconfig fi -mkdir -p /root/.config -tar -vxJf /opt/${repo}/.config.tar.xz -C /root/.config/ -gnomeconfig -copyconfig if pacman -Qdtq; then echo "Verwaiste Packete werden entfernt :)"