Create directories when restoring rss
This commit is contained in:
parent
8abeb56bea
commit
0b606c06d2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue