mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
-fix for backups with old script
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1369 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo Restore settings from $1
|
echo Restore settings from $1
|
||||||
cd /
|
|
||||||
|
tar t -f $1 | grep ^config/ > /dev/null
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
cd /var/tuxbox
|
||||||
|
else
|
||||||
|
cd /
|
||||||
|
fi
|
||||||
|
|
||||||
tar xf $1
|
tar xf $1
|
||||||
sync
|
sync
|
||||||
sync
|
sync
|
||||||
|
Reference in New Issue
Block a user