return 0;
}
+int check_files(void) {
+ int st = 0;
+#ifndef APACHE_PASSWD
+ fprintf(stderr, "Apache htpasswd file is not set.\n");
+ st = 1;
+#endif
+#ifndef APACHE_AUTHZ
+ fprintf(stderr, "Apache authz file is not set.\n");
+ st = 1;
+#endif
+ return st;
+}
+
int main() {
int st;
st = check_db();
if(st != 0) goto fail;
st = check_theme();
if(st != 0) goto fail;
+ st = check_files();
+ if(st != 0) goto fail;
printf("Config validation successful.\n");
return 0;
fail:
/* Apache htpasswd file. */
#define APACHE_PASSWD "/www/passwd"
+/* Apache authz file. */
+#define APACHE_AUTHZ "/www/authz"
+
#endif
/*