mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-12-20 02:43:08 -05:00
This switches all of the instances with only 20G to 25G storage to the lower journald parameters. Since these are now most of the servers, the default is changed and the ones with more storage are explicitly set to use higher values.
19 lines
478 B
Bash
Executable file
19 lines
478 B
Bash
Executable file
#!/bin/bash
|
|
|
|
. shared.sh
|
|
. hosts.sh
|
|
|
|
for host in ${hosts_all[@]}; do
|
|
remote=root@$host
|
|
|
|
echo
|
|
echo $host
|
|
echo
|
|
|
|
cp etc/systemd/journald.conf tmp
|
|
sed -i "s/{{journald_system_max_use}}/${hosts_journald_system_max_use[$host]:-4G}/g" tmp
|
|
sed -i "s/{{journald_system_max_file_size}}/${hosts_journald_system_max_file_size[$host]:-256M}/g" tmp
|
|
rsync tmp $remote:/etc/systemd/journald.conf
|
|
rm tmp
|
|
ssh $remote systemctl reload systemd-journald
|
|
done
|