Restoring mutt
This commit is contained in:
parent
e7e2f71c75
commit
ce466d8c94
|
@ -270,9 +270,13 @@ function restore_mutt_settings {
|
||||||
restore_directory_from_usb $temp_restore_dir mutt/$USERNAME
|
restore_directory_from_usb $temp_restore_dir mutt/$USERNAME
|
||||||
if [ -f $temp_restore_dir/home/$USERNAME/tempbackup/.muttrc ]; then
|
if [ -f $temp_restore_dir/home/$USERNAME/tempbackup/.muttrc ]; then
|
||||||
cp -f $temp_restore_dir/home/$USERNAME/tempbackup/.muttrc /home/$USERNAME/.muttrc
|
cp -f $temp_restore_dir/home/$USERNAME/tempbackup/.muttrc /home/$USERNAME/.muttrc
|
||||||
|
sed -i '/set sidebar_delim/d' /home/$USERNAME/.muttrc
|
||||||
|
sed -i '/set sidebar_sort/d' /home/$USERNAME/.muttrc
|
||||||
fi
|
fi
|
||||||
if [ -f $temp_restore_dir/home/$USERNAME/tempbackup/Muttrc ]; then
|
if [ -f $temp_restore_dir/home/$USERNAME/tempbackup/Muttrc ]; then
|
||||||
cp -f $temp_restore_dir/home/$USERNAME/tempbackup/Muttrc /etc/Muttrc
|
cp -f $temp_restore_dir/home/$USERNAME/tempbackup/Muttrc /etc/Muttrc
|
||||||
|
sed -i '/set sidebar_delim/d' /etc/Muttrc
|
||||||
|
sed -i '/set sidebar_sort/d' /etc/Muttrc
|
||||||
fi
|
fi
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
rm -rf $temp_restore_dir
|
rm -rf $temp_restore_dir
|
||||||
|
|
|
@ -261,9 +261,13 @@ function restore_mutt_settings {
|
||||||
restore_directory_from_friend ${temp_restore_dir} mutt/$USERNAME
|
restore_directory_from_friend ${temp_restore_dir} mutt/$USERNAME
|
||||||
if [ -f ${temp_restore_dir}/home/$USERNAME/tempbackup/.muttrc ]; then
|
if [ -f ${temp_restore_dir}/home/$USERNAME/tempbackup/.muttrc ]; then
|
||||||
cp -f ${temp_restore_dir}/home/$USERNAME/tempbackup/.muttrc /home/$USERNAME/.muttrc
|
cp -f ${temp_restore_dir}/home/$USERNAME/tempbackup/.muttrc /home/$USERNAME/.muttrc
|
||||||
|
sed -i '/set sidebar_delim/d' /home/$USERNAME/.muttrc
|
||||||
|
sed -i '/set sidebar_sort/d' /home/$USERNAME/.muttrc
|
||||||
fi
|
fi
|
||||||
if [ -f ${temp_restore_dir}/home/$USERNAME/tempbackup/Muttrc ]; then
|
if [ -f ${temp_restore_dir}/home/$USERNAME/tempbackup/Muttrc ]; then
|
||||||
cp -f ${temp_restore_dir}/home/$USERNAME/tempbackup/Muttrc /etc/Muttrc
|
cp -f ${temp_restore_dir}/home/$USERNAME/tempbackup/Muttrc /etc/Muttrc
|
||||||
|
sed -i '/set sidebar_delim/d' /etc/Muttrc
|
||||||
|
sed -i '/set sidebar_sort/d' /etc/Muttrc
|
||||||
fi
|
fi
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
rm -rf ${temp_restore_dir}
|
rm -rf ${temp_restore_dir}
|
||||||
|
|
Loading…
Reference in New Issue