mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
autoupdate:
- fix locking
This commit is contained in:
parent
96aa512a4d
commit
60910917e4
@ -6,8 +6,6 @@
|
|||||||
if [ ! -f /var/lock/update.lock ]; then
|
if [ ! -f /var/lock/update.lock ]; then
|
||||||
|
|
||||||
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "auto" ]; then
|
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "auto" ]; then
|
||||||
# locking autoupdate
|
|
||||||
touch /var/lock/update.lock
|
|
||||||
|
|
||||||
# sleep a bit, maybe we have a lot of work ;-)
|
# sleep a bit, maybe we have a lot of work ;-)
|
||||||
usleep 30000000
|
usleep 30000000
|
||||||
@ -42,14 +40,14 @@ if [ ! -f /var/lock/update.lock ]; then
|
|||||||
# show a message if a new version is avaible
|
# show a message if a new version is avaible
|
||||||
send_message "New update avaible: r$NEW_VERSION - please update manually"
|
send_message "New update avaible: r$NEW_VERSION - please update manually"
|
||||||
|
|
||||||
# remove locking
|
|
||||||
rm -rf /var/lock/update.lock
|
|
||||||
|
|
||||||
elif [ "$AUTOUPDATE" = "auto" ]; then
|
elif [ "$AUTOUPDATE" = "auto" ]; then
|
||||||
|
|
||||||
# show a message if a new version is avaible
|
# show a message if a new version is avaible
|
||||||
send_message "New update avaible: r$NEW_VERSION - downloading and extract the new version..."
|
send_message "New update avaible: r$NEW_VERSION - downloading and extract the new version..."
|
||||||
|
|
||||||
|
# locking autoupdate
|
||||||
|
touch /var/lock/update.lock
|
||||||
|
|
||||||
# downloading the new version
|
# downloading the new version
|
||||||
wget -c $UPDATEURL/$NEW_IMAGE.tar.bz2 -P /tmp
|
wget -c $UPDATEURL/$NEW_IMAGE.tar.bz2 -P /tmp
|
||||||
|
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
if [ ! -f /var/lock/update.lock ]; then
|
if [ ! -f /var/lock/update.lock ]; then
|
||||||
|
|
||||||
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "auto" ]; then
|
if [ "$AUTOUPDATE" = "manually" -o "$AUTOUPDATE" = "auto" ]; then
|
||||||
# locking autoupdate
|
|
||||||
touch /var/lock/update.lock
|
|
||||||
|
|
||||||
# sleep a bit, maybe we have a lot of work ;-)
|
# sleep a bit, maybe we have a lot of work ;-)
|
||||||
usleep 30000000
|
usleep 30000000
|
||||||
@ -49,14 +47,14 @@ if [ ! -f /var/lock/update.lock ]; then
|
|||||||
# show a message if a new version is avaible
|
# show a message if a new version is avaible
|
||||||
send_message "New update avaible: $NEW_VERSION - please update manually"
|
send_message "New update avaible: $NEW_VERSION - please update manually"
|
||||||
|
|
||||||
# remove locking
|
|
||||||
rm -rf /var/lock/update.lock
|
|
||||||
|
|
||||||
elif [ "$AUTOUPDATE" = "auto" ]; then
|
elif [ "$AUTOUPDATE" = "auto" ]; then
|
||||||
|
|
||||||
# show a message if a new version is avaible
|
# show a message if a new version is avaible
|
||||||
send_message "New update avaible: $NEW_VERSION - downloading and extract the new version..."
|
send_message "New update avaible: $NEW_VERSION - downloading and extract the new version..."
|
||||||
|
|
||||||
|
# locking autoupdate
|
||||||
|
touch /var/lock/update.lock
|
||||||
|
|
||||||
# downloading the new version
|
# downloading the new version
|
||||||
wget -c $UPDATEURL/$NEW_IMAGE.tar.bz2 -P /tmp
|
wget -c $UPDATEURL/$NEW_IMAGE.tar.bz2 -P /tmp
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user