<?php
$expected=['p/logic/NutritionTemplate.php'=>'dd86650ab7cc953d2545f6882ea0d7e454de5c2e86cd452471271074ebd30ed6','p/logic/NutritionStation.php'=>'8abad48c8164bd5eee30994700504812e61ea158bd9dfc8937da318cce07888b'];$lock=json_decode(file_get_contents(__DIR__.'/private-source-lock.json'),true);foreach($expected as $file=>$sha){if(hash_file('sha256',__DIR__.'/source/application/'.$file)!==$sha)throw new RuntimeException('Root actual source SHA');$lock[$file]=$sha;}if(!is_file(__DIR__.'/private-original-source-lock.json'))rename(__DIR__.'/private-source-lock.json',__DIR__.'/private-original-source-lock.json');file_put_contents(__DIR__.'/private-source-lock.json',json_encode($lock,JSON_PRETTY_PRINT));chmod(__DIR__.'/private-source-lock.json',0600);echo "Actual Root source pinned\n";
