Skip to content
Snippets Groups Projects
Commit 0b606c06 authored by Bob Mottram's avatar Bob Mottram
Browse files

Create directories when restoring rss

parent 8abeb56b
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,9 @@ function restore_local_rss {
rm -rf /etc/share/tt-rss
mv $temp_restore_dir/etc/share/tt-rss /etc/share/
else
if [ ! -d /etc/share/tt-rss ]; then
mkdir -p /etc/share/tt-rss
fi
cp -r $temp_restore_dir/* /etc/share/tt-rss/
fi
if [ ! "$?" = "0" ]; then
......@@ -249,6 +252,9 @@ function restore_remote_rss {
rm -rf /etc/share/tt-rss
mv $temp_restore_dir/etc/share/tt-rss /etc/share/
else
if [ ! -d /etc/share/tt-rss ]; then
mkdir -p /etc/share/tt-rss
fi
cp -r $temp_restore_dir/* /etc/share/tt-rss/
fi
if [ ! "$?" = "0" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment