mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
service.openelec.settings: rework backup-restore systemd service
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
93ef607941
commit
cb2d366a41
@ -29,7 +29,7 @@ if [ -e "$BACKUP_FILE" ] ; then
|
|||||||
echo OK
|
echo OK
|
||||||
echo -en "restoring.. this may take long time to complete, please wait.. "
|
echo -en "restoring.. this may take long time to complete, please wait.. "
|
||||||
rm -rf /storage/.xbmc &>/dev/null
|
rm -rf /storage/.xbmc &>/dev/null
|
||||||
rm -rf $CONFIG_CACHE &>/dev/null
|
rm -rf /storage/.cache &>/dev/null
|
||||||
rm -rf /storage/.config &>/dev/null
|
rm -rf /storage/.config &>/dev/null
|
||||||
tar xf $BACKUP_FILE -C / &>/dev/null
|
tar xf $BACKUP_FILE -C / &>/dev/null
|
||||||
rm -f $BACKUP_FILE &>/dev/null
|
rm -f $BACKUP_FILE &>/dev/null
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Restoring Backup
|
Description=Restoring Backup
|
||||||
DefaultDependencies=false
|
DefaultDependencies=false
|
||||||
After=storage.mount show-version.service
|
After=show-version.service
|
||||||
Before=local-fs-pre.target swap.target
|
Before=local-fs-pre.target shutdown.target
|
||||||
|
Conflicts=shutdown.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
@ -10,4 +11,5 @@ ExecStart=/usr/lib/openelec/backup-restore
|
|||||||
StandardOutput=tty
|
StandardOutput=tty
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=basic.target
|
WantedBy=local-fs-pre.target
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user