Skip to content

Commit

Permalink
docs: tweak warning about the root (#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia authored Jul 17, 2024
1 parent 09479bf commit d09dc8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ services:
user: "1000:1000"
# Run the updater with a specific user ID and group ID (in that order).
# You should change the two numbers based on your setup.
# This is optional but highly recommended; otherwise you run the updater as root!
# This is optional but highly recommended; otherwise, you will probably
# run the updater as a superuser (root), which is usually a bad idea.
read_only: true
# Make the container filesystem read-only (optional but recommended)
cap_drop: [all]
Expand Down
2 changes: 1 addition & 1 deletion cmd/ddns/ddns.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func realMain() int { //nolint:funlen

// Check root privileges
if syscall.Geteuid() == 0 {
ppfmt.Warningf(pp.EmojiUserWarning, "It is not recommended to run this tool as root")
ppfmt.Warningf(pp.EmojiUserWarning, "You are running this tool as root, which is usually a bad idea")
}

// Read the config and get the handler and the setter
Expand Down

0 comments on commit d09dc8f

Please sign in to comment.