Me again.
I couldn’t leave it alone and started looking at this again today. Hate to nag, but I wonder if there is still something amiss. And my apologies if it’s just me (it might well be).
TL;DR: does the sentence from Step 7 ending in “you can jump to step 8 below.” need to disappear? I think if it doesn’t, lots of important stuff won’t be copied that should be.
I see in Step 7 the following:
Run ls
on your Mattermost install directory to identify what default folders exist. If your folders match the structure specified in the following note, you can jump to step 8 below.
OK, cool, that is my situation.
And then Step 8 tells me:
The n
(no-clobber) flag and trailing .
on source are very important. The n
(no-clobber) flag preserves existing configurations and logs in your installation path. The trailing .
on source ensures all installation files are copied.
Curious, I compare (for example) the contents of /tmp/mattermost-upgrade/bin/
with /opt/mattermost/bin/
and I find among the upgrade files:
root /tmp/mattermost-upgrade/bin# ls -alht
total 110M
drwxr-xr-x 10 root root 4.0K Aug 13 16:04 ..
drwxr-xr-x 2 root root 4.0K Jul 29 13:38 .
-rwxr-xr-x 1 root root 89M Jul 29 13:38 mattermost
-rwxr-xr-x 1 root root 22M Jul 6 15:46 mmctl
…and among my existing files:
root /opt/mattermost/bin# ls -alht
total 108M
drwxr-xr-x 12 mattermost mattermost 4.0K Jul 29 13:37 ..
drwxr-xr-x 2 mattermost mattermost 4.0K Jun 10 13:53 .
-rwxr-xr-x 1 mattermost mattermost 85M Jun 10 13:53 mattermost
-rwxr-xr-x 1 mattermost mattermost 2.2M Jun 10 13:53 platform
-rwxr-xr-x 1 mattermost mattermost 21M Jan 13 2021 mmctl
Uh-oh. I don’t have to erase the old files, since my files and folders match the default, as described in Step 7. But I also won’t replace the old files with the ones from /tmp/mattermost-upgrade
because of the -n
noclobber option in Step 8.
I haven’t tried these steps yet – it’s all a mental walk-through at this point.
TL;DR: does the sentence from Step 7 ending in “you can jump to step 8 below.” need to disappear? I think if it doesn’t, lots of important stuff won’t be copied that should be.