Create UPDATE.sh

This commit is contained in:
Stefan Pejcic
2025-04-11 22:10:21 +02:00
committed by GitHub
parent b11daa5a64
commit d31aabdc8d

15
version/1.2.2/UPDATE.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
for dir in /home/*; do
file="$dir/.env"
user=$(basename "$dir")
if [[ -f "$file" ]]; then
# Check if lines already exist (loosely)
if ! grep -q 'CRONJOBS' "$file"; then
sed -i '/BUSYBOX_RAM="0.1G"/a \
# CRONJOBS\nCRON_CPU="0.1"\nCRON_RAM="0.25G"' "$file"
echo "Updated: $file"
fi
fi
done