Browse Source

Store checksum

Kayou 6 years ago
parent
commit
79ec958aad
1 changed files with 7 additions and 0 deletions
  1. 7 0
      scripts/install

+ 7 - 0
scripts/install

@@ -258,6 +258,13 @@ ynh_replace_string "^DAEMON_CONF=$" "&/etc/hostapd/hostapd.conf" /etc/init.d/hos
 ynh_replace_string "__PATH__" "${path_url}" "$final_path/config.php"
 
 #=================================================
+# STORE THE CONFIG FILE CHECKSUM
+#=================================================
+
+# Calculate and store the config file checksum into the app settings
+ynh_store_file_checksum "$final_path/config.php"
+
+#=================================================
 # SETUP SYSTEMD
 #=================================================
 ynh_print_info "Configuring a systemd service..."