Update setupScript.sh

This commit is contained in:
2024-05-07 09:46:16 +00:00
parent 51c7e93a68
commit 1bf8a06e32

View File

@@ -65,6 +65,19 @@ install_apps() {
flatpak install --system -y app/org.onlyoffice.desktopeditors/x86_64/stable
}
system_update() {
read -p "Do you want to update the system (including Flatpak and RPM-OSTree)? (y/n): " choice
case "$choice" in
[Yy]|[Yy][Ee][Ss])
# Update the system
sudo flatpak update -y
sudo rpm-ostree upgrade
;;
*)
echo "System update skipped." ;;
esac
}
# Check and create users
create_user eleve
create_user prof
@@ -74,11 +87,11 @@ create_user admin
if [ "$(id -u)" = "0" ]; then
set_password prof "IPRprof2398"
set_password admin "Lprsnm4ehk26-"
passwd -d eleve # Set empty password for eleve
passwd -d eleve
# Modify GNOME settings
modify_gnome_settings
install_apps
system_update
else
echo "Password setting and GNOME settings modification require root privileges. Please run as root."
fi