|
43 |
|
43 |
|
44 |
install_vmware_packages () |
44 |
install_vmware_packages () |
45 |
{ |
45 |
{ |
46 |
univention-install -y --force-yes open-vm-tools |
46 |
univention-install -y --assume-yes open-vm-tools |
47 |
} |
47 |
} |
48 |
|
48 |
|
49 |
install_virtualbox_packages () |
49 |
install_virtualbox_packages () |
50 |
{ |
50 |
{ |
51 |
ucr set repository/online/unmaintained="yes" |
51 |
ucr set repository/online/unmaintained="yes" |
52 |
univention-install -y --force-yes virtualbox-guest-x11 |
52 |
univention-install -y --assume-yes virtualbox-guest-x11 |
53 |
ucr set repository/online/unmaintained="no" |
53 |
ucr set repository/online/unmaintained="no" |
54 |
} |
54 |
} |
55 |
|
55 |
|
Lines 57-63
install_activation_packages ()
|
Link Here
|
---|
|
57 |
{ |
57 |
{ |
58 |
if "$1" |
58 |
if "$1" |
59 |
then |
59 |
then |
60 |
univention-install -y --force-yes univention-system-activation |
60 |
univention-install -y --assume-yes univention-system-activation |
61 |
ucr set --force auth/sshd/user/root=yes |
61 |
ucr set --force auth/sshd/user/root=yes |
62 |
ucr set appliance/activation/enabled=true |
62 |
ucr set appliance/activation/enabled=true |
63 |
else |
63 |
else |
Lines 270-276
if [ "$close_fds" = "TRUE" ]; then
|
Link Here
|
---|
|
270 |
exec 1> /dev/null |
270 |
exec 1> /dev/null |
271 |
exec 2> /dev/null |
271 |
exec 2> /dev/null |
272 |
fi |
272 |
fi |
273 |
\$update_commands_install -y --force-yes -o="APT::Get::AllowUnauthenticated=1;" $packages || die |
273 |
\$update_commands_install -y --assume-yes -o="APT::Get::AllowUnauthenticated=1;" $packages || die |
274 |
univention-app register --do-it ${ucsversion}/${app}=${version} |
274 |
univention-app register --do-it ${ucsversion}/${app}=${version} |
275 |
|
275 |
|
276 |
uid="\$(custom_username Administrator)" |
276 |
uid="\$(custom_username Administrator)" |
Lines 687-694
uninstall_packages ()
|
Link Here
|
---|
|
687 |
# if upgraded, u-basesystem will be installed by postup.sh |
687 |
# if upgraded, u-basesystem will be installed by postup.sh |
688 |
state="$(dpkg --get-selections univention-basesystem 2>/dev/null | awk '{print $2}')" |
688 |
state="$(dpkg --get-selections univention-basesystem 2>/dev/null | awk '{print $2}')" |
689 |
if [ "$state" = "install" ]; then |
689 |
if [ "$state" = "install" ]; then |
690 |
apt-get purge -y --force-yes univention-basesystem |
690 |
apt-get purge -y --assume-yes univention-basesystem |
691 |
apt-get -y --force-yes autoremove |
691 |
apt-get -y --assume-yes autoremove |
692 |
fi |
692 |
fi |
693 |
|
693 |
|
694 |
univention-prune-kernels -v |
694 |
univention-prune-kernels -v |
|
740 |
/usr/lib/univention-system-setup/scripts/setup-join.sh 2>&1 | tee /var/log/univention/setup.log |
740 |
/usr/lib/univention-system-setup/scripts/setup-join.sh 2>&1 | tee /var/log/univention/setup.log |
741 |
echo "root:univention" | chpasswd |
741 |
echo "root:univention" | chpasswd |
742 |
# We still need u-s-s-boot, so reinstall it |
742 |
# We still need u-s-s-boot, so reinstall it |
743 |
univention-install -y --force-yes --reinstall univention-system-setup-boot |
743 |
univention-install -y --assume-yes --reinstall univention-system-setup-boot |
744 |
|
744 |
|
745 |
register_app_components "$main_app" |
745 |
register_app_components "$main_app" |
746 |
|
746 |
|
|
755 |
packages="$(get_app_attr "${app}" DefaultPackages) $(get_app_attr "${app}" DefaultPackagesMaster)" |
755 |
packages="$(get_app_attr "${app}" DefaultPackages) $(get_app_attr "${app}" DefaultPackagesMaster)" |
756 |
if [ -n "$packages" ]; then |
756 |
if [ -n "$packages" ]; then |
757 |
# shellcheck disable=SC2154,SC2086 |
757 |
# shellcheck disable=SC2154,SC2086 |
758 |
$update_commands_install -y --force-yes -o="APT::Get::AllowUnauthenticated=1;" $packages |
758 |
$update_commands_install -y --assume-yes -o="APT::Get::AllowUnauthenticated=1;" $packages |
759 |
fi |
759 |
fi |
760 |
univention-run-join-scripts |
760 |
univention-run-join-scripts |
761 |
fi |
761 |
fi |
|
794 |
|
794 |
|
795 |
uninstall_packages |
795 |
uninstall_packages |
796 |
|
796 |
|
797 |
univention-install -y --force-yes --reinstall univention-system-setup-boot |
797 |
univention-install -y --assume-yes --reinstall univention-system-setup-boot |
798 |
|
798 |
|
799 |
# shrink appliance image size |
799 |
# shrink appliance image size |
800 |
rm -f /etc/apt/sources.list.d/05univention-system-setup.list |
800 |
rm -f /etc/apt/sources.list.d/05univention-system-setup.list |
Lines 1116-1122
install_appreport ()
|
Link Here
|
---|
|
1116 |
repository/online/component/appreport/version="4.0" |
1116 |
repository/online/component/appreport/version="4.0" |
1117 |
cat >/usr/lib/univention-system-setup/appliance-hooks.d/install-appreport <<__EOF__ |
1117 |
cat >/usr/lib/univention-system-setup/appliance-hooks.d/install-appreport <<__EOF__ |
1118 |
#!/bin/sh |
1118 |
#!/bin/sh |
1119 |
univention-install -y --force-yes univention-appreport |
1119 |
univention-install -y --assume-yes univention-appreport |
1120 |
__EOF__ |
1120 |
__EOF__ |
1121 |
chmod +x /usr/lib/univention-system-setup/appliance-hooks.d/install-appreport |
1121 |
chmod +x /usr/lib/univention-system-setup/appliance-hooks.d/install-appreport |
1122 |
} |
1122 |
} |
1123 |
- |
|
|