Skip to content

Commit 1e2b2e4

Browse files
committed
docs: use 'sudo cp' instead of 'sudo mv' for manual install
`sudo mv` preserves the source inode's ownership, so when a non-root user runs wget/tar and then `sudo mv`, the resulting /usr/local/bin/dbdeployer is owned by that user instead of root. `sudo cp` creates a root-owned file, matching the other install paths. Fixes #89 (reported by @jfg956).
1 parent a06c3b7 commit 1e2b2e4

6 files changed

Lines changed: 18 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## Unreleased
2+
3+
## DOCUMENTATION
4+
5+
* Recommend `sudo cp` instead of `sudo mv` in manual install steps, so
6+
the `dbdeployer` binary in `/usr/local/bin/` is owned by root rather
7+
than the user who ran `wget`/`tar` (issue #89).
8+
19
## 2.2.2 18-Apr-2026
210

311
## NEW FEATURES

docs/wiki/installation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ For example:
1515
$ wget $origin/dbdeployer-$VERSION.$OS.tar.gz
1616
$ tar -xzf dbdeployer-$VERSION.$OS.tar.gz
1717
$ chmod +x dbdeployer-$VERSION.$OS
18-
$ sudo mv dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
18+
$ sudo cp dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
19+
$ rm dbdeployer-$VERSION.$OS
1920

2021
## Installation via script
2122

mkreadme/readme_template.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ For example:
8282
$ wget $origin/dbdeployer-$VERSION.$OS.tar.gz
8383
$ tar -xzf dbdeployer-$VERSION.$OS.tar.gz
8484
$ chmod +x dbdeployer-$VERSION.$OS
85-
$ sudo mv dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
85+
$ sudo cp dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
86+
$ rm dbdeployer-$VERSION.$OS
8687

8788
Of course, there are **prerequisites**: your machine must be able to run the MySQL server. Be aware that version 5.5 and higher require some libraries that are not installed by default in all flavors of Linux (libnuma, libaio.)
8889

mkwiki/full_doc.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ For example:
8686
$ wget $origin/dbdeployer-$VERSION.$OS.tar.gz
8787
$ tar -xzf dbdeployer-$VERSION.$OS.tar.gz
8888
$ chmod +x dbdeployer-$VERSION.$OS
89-
$ sudo mv dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
89+
$ sudo cp dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
90+
$ rm dbdeployer-$VERSION.$OS
9091

9192
## Installation via script
9293

mkwiki/wiki_template.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ For example:
2121
$ wget $origin/dbdeployer-$VERSION.$OS.tar.gz
2222
$ tar -xzf dbdeployer-$VERSION.$OS.tar.gz
2323
$ chmod +x dbdeployer-$VERSION.$OS
24-
$ sudo mv dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
24+
$ sudo cp dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
25+
$ rm dbdeployer-$VERSION.$OS
2526

2627
## Installation via script
2728

website/src/content/docs/getting-started/installation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ For example:
1919
$ wget $origin/dbdeployer-$VERSION.$OS.tar.gz
2020
$ tar -xzf dbdeployer-$VERSION.$OS.tar.gz
2121
$ chmod +x dbdeployer-$VERSION.$OS
22-
$ sudo mv dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
22+
$ sudo cp dbdeployer-$VERSION.$OS /usr/local/bin/dbdeployer
23+
$ rm dbdeployer-$VERSION.$OS
2324

2425
## Installation via script
2526

0 commit comments

Comments
 (0)