Retroactively change minDiskFree to avoid hardlocks of mirrors
This commit is contained in:
parent
8f000cebfd
commit
d23da78b8e
|
@ -3,6 +3,7 @@
|
||||||
<filesystemType>basic</filesystemType>
|
<filesystemType>basic</filesystemType>
|
||||||
<device id="ZDHVMSP-EW4TMWX-DBH2W4P-HV5A6OY-BBEFABO-QTENANJ-RJ6GKNX-6KCG7QY" introducedBy=""></device>
|
<device id="ZDHVMSP-EW4TMWX-DBH2W4P-HV5A6OY-BBEFABO-QTENANJ-RJ6GKNX-6KCG7QY" introducedBy=""></device>
|
||||||
<order>oldestFirst</order>
|
<order>oldestFirst</order>
|
||||||
|
<minDiskFree unit="%">1</minDiskFree>
|
||||||
</folder>
|
</folder>
|
||||||
<device id="ZDHVMSP-EW4TMWX-DBH2W4P-HV5A6OY-BBEFABO-QTENANJ-RJ6GKNX-6KCG7QY" name="builds.garudalinux.org" compression="metadata" introducer="true" skipIntroductionRemovals="false" introducedBy="">
|
<device id="ZDHVMSP-EW4TMWX-DBH2W4P-HV5A6OY-BBEFABO-QTENANJ-RJ6GKNX-6KCG7QY" name="builds.garudalinux.org" compression="metadata" introducer="true" skipIntroductionRemovals="false" introducedBy="">
|
||||||
<address>tcp://builds.garudalinux.org</address>
|
<address>tcp://builds.garudalinux.org</address>
|
||||||
|
|
16
run
16
run
|
@ -53,6 +53,22 @@ if [ ! -e ./data/syncthing/config.xml ]; then
|
||||||
chown -R 1000:1000 ./data/syncthing
|
chown -R 1000:1000 ./data/syncthing
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
gawk -i inplace '/<folder id="jhcrt-m2dra"/ {
|
||||||
|
begin = 1
|
||||||
|
}
|
||||||
|
/<minDiskFree unit="">0<\/minDiskFree>/ {
|
||||||
|
if (begin) {
|
||||||
|
print " <minDiskFree unit=\"%\">1</minDiskFree>"
|
||||||
|
next
|
||||||
|
} else {
|
||||||
|
print
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/<\/folder>/ {
|
||||||
|
begin = 0
|
||||||
|
}
|
||||||
|
1' ./data/syncthing/config.xml
|
||||||
|
|
||||||
if [ "$USE_TUNNELS" != "true" ]; then
|
if [ "$USE_TUNNELS" != "true" ]; then
|
||||||
docker-compose -f docker-compose.yml up ${COMPOSEFLAGS-"-d"}
|
docker-compose -f docker-compose.yml up ${COMPOSEFLAGS-"-d"}
|
||||||
else
|
else
|
||||||
|
|
2
update
2
update
|
@ -10,7 +10,7 @@ fi
|
||||||
./stop
|
./stop
|
||||||
|
|
||||||
if [ ! -d "./.git" ]; then
|
if [ ! -d "./.git" ]; then
|
||||||
if [ "$(git rev-parse --is-inside-work-tree)" == "true" ]; then
|
if [ "$(git rev-parse --is-inside-work-tree || true)" == "true" ]; then
|
||||||
echo "Please run this script in the main directory"
|
echo "Please run this script in the main directory"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue