Skip to content

Commit

Permalink
Don't show warning if become parameter is set to root (#3761)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored Jan 9, 2024
1 parent bbd9d8a commit b053223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipe/provision.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

desc('Checks pre-required state');
task('provision:check', function () {
if (get('remote_user') !== 'root') {
if (get('remote_user') !== 'root' && get('become') !== 'root') {
warning('');
warning('Run provision as root: -o remote_user=root');
warning('or with a sudo enabled user: -o become=root');
Expand Down

0 comments on commit b053223

Please sign in to comment.