1 |
%define name smeserver-virtualbox |
%define name smeserver-virtualbox |
2 |
%define version 5.2 |
%define version 5.2 |
3 |
%define release 2 |
%define release 3 |
4 |
%define rpmver 5.2 |
%define rpmver 5.2 |
5 |
Summary: smserver rpm to install VirtualBox |
Summary: smserver rpm to install VirtualBox |
6 |
Name: %{name} |
Name: %{name} |
25 |
smserver rpm to install VirtualBox-5.2 |
smserver rpm to install VirtualBox-5.2 |
26 |
|
|
27 |
%changelog |
%changelog |
28 |
|
* Thu Oct 20 2022 Trevor Batley <trevor@batley.id.au> 5.2-3.sme |
29 |
|
- remove storage of vbox password |
30 |
|
|
31 |
* Wed Oct 19 2022 Trevor Batley <trevor@batley.id.au> 5.2-2.sme |
* Wed Oct 19 2022 Trevor Batley <trevor@batley.id.au> 5.2-2.sme |
32 |
- change vbox user to system user and change the home directory |
- change vbox user to system user and change the home directory |
33 |
|
|
88 |
/sbin/e-smith/db accounts set vbox system Description "VBox runtime user" |
/sbin/e-smith/db accounts set vbox system Description "VBox runtime user" |
89 |
useradd -c "VBox runtime user" -d /home/vbox -m -N -s /bin/bash -g vboxusers vbox |
useradd -c "VBox runtime user" -d /home/vbox -m -N -s /bin/bash -g vboxusers vbox |
90 |
mkdir /home/vbox/.virtualbox |
mkdir /home/vbox/.virtualbox |
|
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32 > /home/vbox/.virtualbox/vbox.passwd |
|
|
cat /home/vbox/.virtualbox/vbox.passwd | passwd --stdin vbox |
|
91 |
fi |
fi |
92 |
|
|
93 |
%preun |
%preun |