-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·39 lines (31 loc) · 826 Bytes
/
install.sh
File metadata and controls
executable file
·39 lines (31 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
source ./shared-env.sh
# copy additional repos
sudo cp ./yum.repos.d/* /etc/yum.repos.d/
rpm-ostree update
rpm-ostree install \
--allow-inactive \
--idempotent \
-y \
$packages
# enable ntp sync for date and time
timedatectl set-ntp yes
for flatpak_package in $flatpak_packages
do
echo "install flatpak: $flatpak_package"
flatpak install flathub "${flatpak_package}"
done
# needed for kind rootless (see https://kind.sigs.k8s.io/docs/user/rootless/)
sudo mkdir -p /etc/systemd/system/user@.service.d
cat <<EOF | sudo tee /etc/systemd/system/user@.service.d/delegate.conf
[Service]
Delegate=yes
EOF
sudo systemctl daemon-reload
for folder in $folders
do
if [ -d "./$folder" ]; then
echo "copy: $folder"
rsync -r --mkpath "./$folder/" "$HOME/$folder"
fi
done