_common.sh 438 B

12345678910111213
  1. #!/bin/bash
  2. # ============= FUTURE YUNOHOST HELPER =============
  3. # Delete a file checksum from the app settings
  4. #
  5. # $app should be defined when calling this helper
  6. #
  7. # usage: ynh_remove_file_checksum file
  8. # | arg: file - The file for which the checksum will be deleted
  9. ynh_delete_file_checksum () {
  10. local checksum_setting_name=checksum_${1//[\/ ]/_} # Replace all '/' and ' ' by '_'
  11. ynh_app_setting_delete $app $checksum_setting_name
  12. }