Closed godfuture closed 3 years ago
If you do shell="..." && $shell
the contents of $shell
will be executed as command, thus leading to the error that the command is unknown. What you want to do is print the contents of the variable: shell="..." && echo $shell
. What does:
sudo grep backup /etc/passwd | awk -F ':' '{print $7}' | tr '/' '_'
sudo grep nobody /etc/passwd | awk -F ':' '{print $7}' | tr '/' '_'
say?
This is the output:
root@media-server:~/openmediavault-upgrade-4.6# sudo grep backup /etc/passwd | awk -F ':' '{print $7}' | tr '/' '_'
_usr_sbin_nologin
_bin_false
root@media-server:~/openmediavault-upgrade-4.6# sudo grep nobody /etc/passwd | awk -F ':' '{print $7}' | tr '/' '_'
_usr_sbin_nologin
There are two users with the name of "backup". Thus creating a preseed line which is not correct. I need to change the grep part.
Should be fixed in all branches.
You can test it with both fixes using
wget -qO- https://github.com/dleidert/openmediavault-upgrade/archive/e15e0f707981ee005cdf408187cc49347aa93d36.tar.gz | tar -xz
sudo openmediavault-upgrade-e15e0f707981ee005cdf408187cc49347aa93d36/omv-release-upgrade-5
Following answer from https://github.com/dleidert/openmediavault-upgrade/issues/14#issuecomment-757141329 I tried to upgrade my system. I get the following error:
I have tested the input into echo, which is the same: