remove_config

This commit is contained in:
simono41 2018-06-05 00:06:11 +02:00
parent a19fdef81f
commit b12b9c0d06

View file

@ -170,6 +170,9 @@ EOT
} }
function copyconfig() { function copyconfig() {
if [ -d /home/"$username"/.config ]; then
rm -Rv /home/"$username"/.config
fi
cp -aRv /root/. /home/"$username"/ cp -aRv /root/. /home/"$username"/
#links #links
links links
@ -748,6 +751,9 @@ if [ "$version" != "lite" ]; then
chmod 755 -Rv /usr/share/backgrounds/xfce/ chmod 755 -Rv /usr/share/backgrounds/xfce/
# .config # .config
if [ -d /root/.config ]; then
rm -Rv /root/.config
fi
mkdir -p /root/.config mkdir -p /root/.config
tar -vxJf /opt/${repo}/.config.tar.xz -C /root/.config/ tar -vxJf /opt/${repo}/.config.tar.xz -C /root/.config/
gnomeconfig gnomeconfig