Skip to content

Commit 8a2642c

Browse files
TimWollabukka
andauthored
fpm: Shorten error message when running as root
Co-authored-by: Jakub Zelenka <[email protected]>
1 parent f5e3765 commit 8a2642c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ static int fpm_conf_process_all_pools(void)
859859

860860
/* alert if user is not set; only if we are root and fpm is not running with --allow-to-run-as-root */
861861
if (!wp->config->user && !geteuid() && !fpm_globals.run_as_root) {
862-
zlog(ZLOG_ALERT, "[pool %s] FPM is running as root and the user directive has not been specified, refusing to run for security reasons. Specify either a pool-specific user directive or pass the --allow-to-run-as-root flag.", wp->config->name);
862+
zlog(ZLOG_ALERT, "[pool %s] user directive has not been specified when running as a root without --allow-to-run-as-root", wp->config->name);
863863
return -1;
864864
}
865865

0 commit comments

Comments
 (0)