From 97ea8ad61f5fccbf8dfe5a35b21b794f6fed89cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 9 Feb 2015 12:42:06 +0100 Subject: [PATCH] [fix]update only if needed --- scripts/update-ynh.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/update-ynh.php b/scripts/update-ynh.php index bbadd22..abbfb06 100644 --- a/scripts/update-ynh.php +++ b/scripts/update-ynh.php @@ -16,8 +16,8 @@ curl_exec($ch); curl_close($ch); fclose($fp); - -require('update.php'); - -apply_update(); +if (!strstr(file_get_contents('update.php'), 'NO_UPDATE')){ + require('update.php'); + apply_update(); +} ?> \ No newline at end of file