mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
postupgrade init script: check directory presence
This commit is contained in:
parent
567c350dcf
commit
9b0954fb94
@ -13,6 +13,8 @@ sys_hash=$(md5sum $sys_version_file 2>/dev/null | cut -d ' ' -f 1)
|
||||
|
||||
test "$hash" == "$sys_hash" && exit 0
|
||||
|
||||
test -d $post_upgrade_dir || exit 0
|
||||
|
||||
function version_gt() {
|
||||
if [ "$1" != "$2" ] && [ $(echo -e "$2\n$1" | sort -t . | head -n 1) == "$2" ]; then
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user