add admin user to openmediavault-admin group
This commit is contained in:
parent
a7367e6112
commit
ac4ea489d1
7
install
7
install
@ -13,7 +13,7 @@
|
||||
# https://github.com/armbian/config/blob/master/debian-software
|
||||
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
||||
#
|
||||
# version: 1.6.14
|
||||
# version: 1.6.15
|
||||
#
|
||||
|
||||
if [[ $(id -u) -ne 0 ]]; then
|
||||
@ -448,6 +448,11 @@ if [ -f "/etc/init.d/proftpd" ]; then
|
||||
systemctl stop proftpd.service
|
||||
fi
|
||||
|
||||
# add admin user to openmediavault-admin group if it exists
|
||||
if getent passwd admin > /dev/null; then
|
||||
usermod -a -G openmediavault-admin admin
|
||||
fi
|
||||
|
||||
if [[ "${arch}" == "amd64" ]] || [[ "${arch}" == "i386" ]]; then
|
||||
# skip ionice on x86 boards
|
||||
echo "Done."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user