@@ -177,6 +177,19 @@ check_addon_template_mentions() {
177177 done
178178}
179179
180+ # Check LICENSE file for Apache License
181+ check_license () {
182+ local license_file=" LICENSE"
183+
184+ if [[ -f " $license_file " ]]; then
185+ if ! grep -q " Apache License" " $license_file " ; then
186+ actions+=(" LICENSE should contain 'Apache License', see upstream file $UPSTREAM /$license_file " )
187+ fi
188+ else
189+ actions+=(" LICENSE is missing, see upstream file $UPSTREAM /$license_file " )
190+ fi
191+ }
192+
180193# Main function
181194main () {
182195 if [[ ! -f " install.yaml" ]]; then
@@ -185,11 +198,14 @@ main() {
185198 fi
186199
187200 # Check unnecessary files
201+ check_remove_file " docker-compose.addon-template.yaml"
188202 check_remove_file " README_ADDON.md"
189203 check_remove_file " README_DEBUG.md"
190204 check_remove_file " images/gh-tmate.jpg"
191- check_remove_file " images/template--button.png"
192- check_remove_file " docker-compose.addon-template.yaml"
205+ check_remove_file " images/template-button.png"
206+ check_remove_file " .github/scripts/first-time-setup.sh"
207+ check_remove_file " .github/scripts/update-checker.sh"
208+ check_remove_file " .github/workflows/first-time-setup.yml"
193209
194210 # Check README.md for conditions
195211 check_readme
@@ -215,6 +231,9 @@ main() {
215231 # Check for addon-template mentions
216232 check_addon_template_mentions
217233
234+ # Check LICENSE file
235+ check_license
236+
218237 # If any actions are needed, throw an error
219238 if [[ ${# actions[@]} -gt 0 ]]; then
220239 echo " ERROR: Actions needed:" >&2
0 commit comments