1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wekan_ynh.git synced 2024-09-03 20:36:09 +02:00

limit sleep to package_check

This commit is contained in:
yalh76 2019-10-25 19:19:37 +02:00
parent a5e573b56f
commit 7210a067ea

View file

@ -15,7 +15,9 @@ abort_if_up_to_date () {
version=$(read_json "/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" 'version' 2> /dev/null || echo '20160501-7')
last_version=$(read_manifest 'version')
if [ "${version}" = "${last_version}" ]; then
sleep 60
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then
sleep 60
fi
ynh_print_info "Up-to-date, nothing to do"
ynh_die "" 0
fi